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

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Created in VS6

Tried to compile in VS2005 Express and got the above error.

Installed the latest Platform SDK which contains afxwin.h, but get the same error.

Here is the code:
<font size="1
<font color="#008000" size="2 // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // </font><font color="#0000ff" size="2 #if</font><font size="2 !</font><font color="#0000ff" size="2 defined</font><font size="2 (AFX_STDAFX_H__38F261C7_B9D0_11D1_94AA_444553540000__INCLUDED_) </font><font color="#0000ff" size="2 #define</font><font size="2 AFX_STDAFX_H__38F261C7_B9D0_11D1_94AA_444553540000__INCLUDED_ </font><font color="#0000ff" size="2 #if</font><font size="2 _MSC_VER >= 1000 </font><font color="#0000ff" size="2 #pragma</font><font size="2 </font><font color="#0000ff" size="2 once #endif</font><font size="2 </font><font color="#008000" size="2 // _MSC_VER >= 1000 </font><font color="#0000ff" size="2 #define</font><font size="2 VC_EXTRALEAN </font><font color="#008000" size="2 // Exclude rarely-used stuff from Windows headers </font><font color="#0000ff" size="2 #include</font><font size="2 </font><font color="#800000" size="2 <afxwin.h></font><font size="2 </font><font color="#008000" size="2 // MFC core and standard components </font><font color="#0000ff" size="2 #include</font><font size="2 </font><font color="#800000" size="2 <afxext.h></font><font size="2 </font><font color="#008000" size="2 // MFC extensions </font><font color="#0000ff" size="2 #ifndef</font><font size="2 _AFX_NO_AFXCMN_SUPPORT </font><font color="#0000ff" size="2 #include</font><font size="2 </font><font color="#800000" size="2 <afxcmn.h></font><font size="2 </font><font color="#008000" size="2 // MFC support for Windows Common Controls </font><font color="#0000ff" size="2 #endif</font><font size="2 </font><font color="#008000" size="2 // _AFX_NO_AFXCMN_SUPPORT //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. </font><font color="#0000ff" size="2 #endif</font><font size="2 </font><font color="#008000" size="2 // !defined(AFX_STDAFX_H__38F261C7_B9D0_11D1_94AA_444553540000__INCLUDED_) </font></font>

View the full article
 
Back
Top