What is wrong w. this.
Here is the source.
#include <afxwin.h>
class CMainWin : public CFrameWnd
{
public:
CMainWin();
DECLARE_MESSAGE_MAP()
};
CMainWin::CMainWin()
{
Create(NULL,"Blah blah blah");
}
class CApp : public CWinApp
{
public:
BOOL InitInstance();
};
BOOL CApp::InitInstance()
{
m_pMainWnd = new CMainWin;
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}
BEGIN_MESSAGE_MAP(CMainWin, CFrameWnd)
END_MESSAGE_MAP()
CApp App;
It compiles fine, but cant execute.
Here is the error in vs6
--------------------Configuration: lame - Win32 Debug--------------------
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/lame.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
lame.exe - 3 error(s), 0 warning(s)