Hi,
I'm just going through this book slowly, trying to learn C++ and I have got to Chapter 12 (Windows programming with MFC) and I can't compile any of the programs.
It gives me the error:
1>c:\cprograms\sketcher\sketcher\sketcher.cpp(62) : error C3861: 'AfxMessageBox': identifier not found
I can't see what the problem is... he is the code the error is refering to:
Code:
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
// Initialize OLE libraries
if (!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return FALSE;
}
AfxEnableControlContainer();
Any ideas?