The code is the following, and gives me a linker error telling me to define the entry point. I thought MFC automatically defined InitInstance() as the entry point (I am new to this). I am currently trying to compile/link within Visual Studio 2007 Beta 1.
Code:
#include <afxwin.h>
class MFC_Tutorial_Window : public CFrameWnd
{
public:
MFC_Tutorial_Window()
{
Create(NULL, "MFC Tutorial Part 1 CoderSource Window");
}
};
class MyApp : public CWinApp
{
public:
BOOL InitInstance()
{
wnd = new MFC_Tutorial_Window();
m_pMainWnd = wnd;
m_pMainWnd->ShowWindow(1);
return 1;
}
MFC_Tutorial_Window *wnd;
};
MyApp theApp;