Hello,
I am doing a lesson in a C++ Guide Book to create a simple window (code below) and the Visual C++ Express 2005 IDE reported this error:
Cannot open include file: 'afxwin.h': No such file or directory
I set - Use MFC in a shared DLL - as the book directed.
// Ex13_01.cpp
// An elementary MFC program
#include <afxwin.h> // For the class library
// Application class definition
class COurApp:public CWinApp
{
public;
virtual BOOL InitInstance();
};
// Window class definition
class COurWnd:public CFrameWnd
{
public:
// Class constructor
COurWnd()
{
Create(0, "Our dumb MFC Application");
}
};
// Function to create an instance of the main window
BOOL COurApp::InitInstance(void)
{
// Construct a window object in the free store
m_pMainWnd = new COurWnd;
m_pMainWnd->ShowWindow(m_nCmdShow); // ...and display it
return TRUE;
}
// Application object definition at global scope
COurApp AnApplication; // Define an application object