main
members
work
about me
avatar
Paul(admin)
post

Error C1083 in Visual C++ 2008 Express

Post replyCan't edit post
Watch topicCan't delete post
Monday, September 14 2009, 12:57
After opening a project in Visual C++ 2008 Express Edition that I had built on a different machine running Visual Studio 6, I ran into the following error:
fatal error C1083: Cannot open include file: 'afxwin.h':
No such file or directory
I discovered that it could easily be fixed by editing the RC resource script of the project:
  1. Right-click on the RC file and select "View code"
  2. Replace the include statement containing afxwin.h to windows.h.
  3. Save the document and recompile.

Be wary that there are some differences between the two files, and are not entirely interchangeable. I'm not sure exactly what these differences are as I haven't run into any problems so far. Feel free to drop a comment if you have a more robust solution.
Rating:
Actions:Post replyWatch topic
No comments.Post reply

More updates

Click here to read more news items.
Members have extra privileges. You can login or register.
© 2005–2017 P. F. Lammertsma
No members currently online; 560 hits today by 181 unique users