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

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


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.

Author Info:
By: Mitchell Harper
Rating: 5 stars5 stars5 stars5 stars5 stars / 78
November 26, 2001
TABLE OF CONTENTS:
  1. · Using MFC in C++ Part 1: A Basic Application Skeleton
  2. · Building the framework
  3. · Creating the framework classes
  4. · Adding the code to MyClass.cpp
  5. · Making sure our application runs
  6. · Responding to windows messages
  7. · Conclusion

print this article
SEARCH DEVARTICLES

Using MFC in C++ Part 1: A Basic Application Skeleton
(Page 1 of 7 )

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++.
blog comments powered by Disqus
C++ ARTICLES

- Intel Threading Building Blocks
- Threading Building Blocks with C++
- Video Memory Programming in Text Mode
- More Tricks to Gain Speed in Programming Con...
- Easy and Efficient Programming for Contests
- Preparing For Programming Contests
- Programming Contests: Why Bother?
- Polymorphism in C++
- Overview of Virtual Functions
- Inheritance in C++
- Extending the Basic Streams in C++
- Using Stringstreams in C++
- Custom Stream Manipulation in C++
- General Stream Manipulation in C++
- Serialize Your Class into Streams in C++

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials