Discussion:
afxwin.h not found
(too old to reply)
Daniel
2008-05-08 06:39:50 UTC
Permalink
I downloaded the code for this tutorial --
http://msdn.microsoft.com/en-us/visualc/cc507088.aspx. When I try to build
it in Visual C++, I get an error saying:

fatal error C1083: Cannot open include file: 'afxwin.h': No such file or
directory

The error points to the line that says:

#include <afxwin.h> // MFC core and standard components

Do I need to download other files from Microsoft to get this code to run?

Daniel
SvenC
2008-05-08 06:49:57 UTC
Permalink
Hi Daniel,
Post by Daniel
I downloaded the code for this tutorial --
http://msdn.microsoft.com/en-us/visualc/cc507088.aspx. When I try to
fatal error C1083: Cannot open include file: 'afxwin.h': No such file
or directory
Do you use VC++ Express? MFC is not part of the Express version.

--
SvenC
Daniel
2008-05-08 19:06:15 UTC
Permalink
OK. That explains it. Does that mean I can't use the library at all?

Daniel
Post by SvenC
Hi Daniel,
Post by Daniel
I downloaded the code for this tutorial --
http://msdn.microsoft.com/en-us/visualc/cc507088.aspx. When I try to
fatal error C1083: Cannot open include file: 'afxwin.h': No such file
or directory
Do you use VC++ Express? MFC is not part of the Express version.
--
SvenC
SvenC
2008-05-09 05:32:15 UTC
Permalink
Hi Daniel,
Post by Daniel
OK. That explains it. Does that mean I can't use the library at all?
Correct, with Express you cannot use MFC and ATL

--
SvenC

Loading...