C++
  Home arrow C++ arrow 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  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
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 / 52
    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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Using MFC in C++ Part 1: A Basic Application Skeleton


    (Page 1 of 7 )

    Microsoft Foundation Classes allow C++ developers to write windows apps easier and faster. In this article, Mitch starts from scratch and digs deep into the MFC toolbox to provide you with all of the code and details to create a simple MFC based Win32 app.Microsoft Foundation Classes are a set of classes that ship with Microsoft Visual C++, and most recently, Visual Studio.Net. They allow developers to write windows applications easier, without the need to call Win32 API’s exclusively. The MFC’s act as “wrappers” to several of the Windows API calls, but also give programmers added error handling and functionality while all being neatly encapsulated into #includeable header files… how convenient!

    In this article I will give you a detailed run-down of how to create a simple MFC based Win32 Application skeleton. We will create our main window, and I will describe how windows messaging works and give a brief example of responding to a message. In parts two and three, I will talk about some of the windows resources including menus and dialog boxes.

    To continue with this article, you should be proficient with C++ and have Microsoft Visual Studio 6 installed. You could also use Visual Studio.Net C++.

    More C++ Articles
    More By Mitchell Harper


     

    C++ ARTICLES

    - 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
    - First Steps in (C) Programming, continued
    - First Steps in (C) Programming, introduction
    - C++ Preprocessor: Always Assert Your Code Is...
    - C++ Preprocessor: The Code in the Middle
    - Programming in C
    - Temporary Variables: Runtime rvalue Detection
    - Temporary Variables: Chasing Temporaries Away







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