Link Error/Resource file/VC++6/WinXP

Pls Guide me i have problem in compiling.
/*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.

[1400 byte] By [s_rookie] at [2007-12-16]
# 1
- Never enter something into the "ignore libraries"
- Select the multi threaded version of the CRT
Hint: You *must* choose the same version (static or DLL) as you have selected for the MFC!
=> If the MFC is statically liniked, then please select also the static Multithreaded CRT
=> If the MFC is DLL, then please select also the DLL-Multithreaded CRT

Greetings
Jochen

JochenKalmbach at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2
Jochen seems to be right here. Usually similar list of unresolved externals is a signed of mixing _AFX_DLL and /MT or viceverse. Check how you link to MFC and CRT and choose one consistent way - either dynamically or statically.

Thanks,
Nikola Dudar
Visual C++ Team

NikolaDudar at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ General...