Link Error/Resource file/VC++6/WinXP
/*When i build the following project i get a link error which says
"""Compiling resources...
Compiling...
file1.cpp
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/myproject1.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
myproject1.exe - 3 error(s), 0 warning(s)"""
*/
//////////////////////////////////////////////////////////////////////////
#include<afxwin.h>
#include "resource.h"
class myframeublic CFrameWnd
{
public:
CMenu *m;
myframe()
{
Create(0,"Menu");
m=new CMenu;
m->LoadMenu(IDR_MENU1);
SetMenu(m);
}
};
class mywinublic CWinApp
{
public:
BOOL InitInstance()
{
myframe *my;
my= new myframe;
my->ShowWindow(3);
m_pMainWnd=my;
return TRUE;
}
};
mywin a;
/////////////////////////////////////////////////////////////////////////////////////////
To overcome this problem ive tried
1>selected debug Multithreaded Dll for code genration
2>ignored default libraries :libc.lib, libcmt.lib, libcd.lib, libcmtd.lib
But both threw up lot of errors.

