Howto build MFC code in Visual C++ Express (not Visual C++ Pro)

Added by molator about 5 years ago

Tutorial based on a deprecated tutorial i found
http://www.codeproject.com/KB/MFC/MFCinVisualStudioExpress.aspx

Step 1 - Install Visual C++ Express

Step 2 - Download Windows Driver Kit

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=36a2630f-5d56-43b5-b996-7633f2ec14ff

Step 3 - Install Windows Driver Kit

Check the first checkbox (Build Environment, Documentation, Tools for Driver Developers)

Step 4 - Add includes and libraries in Visual C++ Express

Replace WinDDK_directory by the directory where you installed Windows Driver Kit

"Options" > "Tools" > "Projects and Solutions" > "VC++ Directories" > "Include files"
Add WinDDK_directory\inc\mfc42
Add WinDDK_directory\inc\atl71 (atl directory might change depending on Windows Driver Kit Version)

"Options" > "Tools" > "Projects and Solutions" > "VC++ Directories" > "Library files"
Add WinDDK_directory\lib\mfc\i386
Add WinDDK_directory\lib\atl\i386

That's all folks!