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.

Now, lets add some fun to our app and give it some usability!
Next: Responding to windows messages >>
More C++ Articles
More By Mitchell Harper