C++
  Home arrow C++ arrow Page 5 - Using MFC in C++ Part 1: A Basic Applicati...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C++

Using MFC in C++ Part 1: A Basic Application Skeleton
By: Mitchell Harper
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 54
    2001-11-26

    Table of Contents:
  • Using MFC in C++ Part 1: A Basic Application Skeleton
  • Building the framework
  • Creating the framework classes
  • Adding the code to MyClass.cpp
  • Making sure our application runs
  • Responding to windows messages
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using MFC in C++ Part 1: A Basic Application Skeleton - Making sure our application runs


    (Page 5 of 7 )

    As with may other commercially available compilers, there can be certain “issues” which will prevent some simple code from compiling on some machines. This too can be the case with Visual C++.

    Try compiling your app by clicking on the Build menu and then on “Execute MFCSample.exe”. If your app runs, then you should see a dialog window with minimize, restore and maximize buttons. Congratulations, you’ve just created your first basic MFC App!

    If not, try this: Click on the Projects menu and then on the Settings… option. Click on the C/C++ tab and change the category list to “Code Generation”. Under the user run-time library selection box, change it to “Debug Multithreaded”. Click on the OK button and try compiling it again. It should work fine.

    The one and only window of our simple MFC based Ap

    Now, lets add some fun to our app and give it some usability!

    More C++ Articles
    More By Mitchell Harper


     

    C++ ARTICLES

    - Paths and Files
    - Directories in C++
    - Focusing on C++ Files
    - Const Correctness in C++
    - Manipulating Streams and Files with C++
    - Streams and Files
    - Multiplying Large Numbers with Karatsuba`s A...
    - Large Numbers
    - Dijkstra`s Shunting Algorithm with STL and C...
    - Brief Introduction to the STL Containers
    - The Standard Template Library
    - Templates in C++
    - C++ Programmer Alerts
    - C++ Programming Tips
    - First Steps in (C) Programming, conclusion






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT