Hi,
I'm trying to get a basic MDI program working.
I create the template through Microsoft Visual Studio 2005, and then
before changing any code i run the program. But it doesn't actually run
it has a AfxMessageBox error.
I've tried the MSDN and other forums but no one has been able to help
me any ideas?
Here is the code that is bugging up:
----ERROR----
1>c:\documents and settings\sketcher\sketcher\sketcher.cpp(62) : error
C3861: 'AfxMessageBox': identifier not found
----CODE----
CWinApp::InitInstance();
// Initialize OLE libraries
if (!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return FALSE;
}
AfxEnableControlContainer();