Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

beginner-getting end of file error with sample code 1

Status
Not open for further replies.

munda1

Technical User
Feb 10, 2005
19
US
Hello, I am getting the following error msg:

fatal error C1010: unexpected end of file while looking for precompiled header directive

I am trying to compile the following sample 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;

Can you help? Thank you,
Joe


 
Thank you timmay3141. I will try it. Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top