this Code is not work ??? Why
[cod]
#include<afxwin.h>
class mywin ublic CFrameWnd
{
mywin()
{
Create(NULL,"Esmaee.com");
}
};
class app: public CWinApp
{
BOOL InitInstance()
{
m_pMainWnd=new CFrameWnd();
m_pMainWnd->ShowWindow(m_nCmdShow);
return TRUE;
}
};
app aap;
[/cod]
I have to creat and show window but instead this I recieve this message :
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Linking...
libcmtd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Cpp1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
please Help!!!