beginner-getting end of file w/sample program
Hello, getting the following:
"fatal error C1010: unexpected end of file while looking for precompiled header directive"
when compiling the following code in Visual C++.NET...
#include <afxwin.h>
class CMainFrame : public CFrameWnd
{
public:
CMainFrame()
{
Create(NULL, "Simple Windows Application");
}
};
class CExerciseApplication: public CWinApp
{
public:
BOOL InitInstance()
{
m_pMainWnd = new CMainFrame;
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
}
};
CExerciseApplication theApp;
it is sample code- can you help. Thank you. Joe
|