this is a simple program copied from a book, it compiles fine
#include <afxwin.h> //used for the class library
//the class CWinApp is fundamental to any Windows program written using MFC
class COurApp: public CWinApp
{
public:
virtual BOOL InitInstance(); //defined as a virtual function so you know it is from the base class and not a new one being
//created in the derived class
};
//m_pszAppName member, pointer to a string which defines the name of the application
//m_nCmdShow specifies how the application windows is to be shown when the application starts up
class COurWnd: public CFrameWnd //Window class
{
public:
COurWnd()
{
Create(0, "Our Dumb MFC Application"); //has more parameters than this
}
};
//the 0 means that we want to use the base class default attribues for the window
BOOL COurApp::InitInstance(void)
{
m_pMainWnd = new COurWnd;
m_pMainWnd->ShowWindow(m_nCmdShow);
return TRUE;
}
COurApp AnApplication;
when I go to build I get these messages and it will not work:
Compiling...
main.cpp
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/ivorhorton.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
I am so totally lost it isn't funny.