How to compile MFC C++ source code in VS2010 C++ Express edition ?
-
Monday, April 19, 2010 11:52 PM
I got a MFC C++ HIDtoUART demo code from Silicon Labs and tried to compile it in VS2010 C++ Express edition.
It automatically translates it into VS2010 style and reports the following error:
1>------ Build started: Project: HIDtoUARTExample, Configuration: Debug Win32 ------
1> stdafx.cpp
1>d:\usb_kit\usb_hid\hidtouartexample\host\hidtouart\source\stdafx.h(38): fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========How to fix it ?
All Replies
-
Tuesday, April 20, 2010 1:17 AM
The Express Editions of VC++ have not usually
included MFC, as noted here:
http://www.microsoft.com/express/support/support-faq.aspx
I haven't heard of any change in that policy for 2010.
- Wayne- Marked As Answer by Nancy ShaoModerator Thursday, May 06, 2010 9:16 AM
-
Tuesday, April 20, 2010 12:38 PM
The feature list for the VC2010 version.
So your best bet would be to get the Visual Studio trial to get this to build.
Visit my (not very good) blog at http://c2kblog.blogspot.com/- Marked As Answer by Nancy ShaoModerator Thursday, May 06, 2010 9:16 AM

