Hi,

I am compiling an application with the following settings:

Release
Use of MFC in a Shared DLL
Multi-threaded DLL
/NODEFAULTLIB:"libc.lib" /NODEFAULTLIB:"nafxcw.lib"

I get these errors:

Code:
whlIDMlib.lib(Whl_IDM_Interface.obj) : error LNK2001: unresolved external symbol __afxForceEXCLUDE
whlIDMlib.lib(Whl_IDM_Interface.obj) : error LNK2019: unresolved external symbol "void __stdcall AfxThrowOleException(long)" (?AfxThrowOleException@@YGXJ@Z) referenced in function "void __stdcall ATL::AtlThrow(long)" (?AtlThrow@ATL@@YGXJ@Z)
whlIDMlib.lib(Whl_IDM_Interface.obj) : error LNK2019: unresolved external symbol "void __stdcall AfxThrowMemoryException(void)" (?AfxThrowMemoryException@@YGXXZ) referenced in function "void __stdcall ATL::AtlThrow(long)" (?AtlThrow@ATL@@YGXJ@Z)
whlIDMlib.lib(Whl_IDM_Interface.obj) : error LNK2019: unresolved external symbol "class CWinThread * __stdcall AfxBeginThread(unsigned int (__cdecl*)(void *),void *,int,unsigned int,unsigned long,struct _SECURITY_ATTRIBUTES *)" (?AfxBeginThread@@YGPAVCWinThread@@P6AIPAX@Z0HIKPAU_SECURITY_ATTRIBUTES@@@Z) referenced in function "long __cdecl Register(int)" (?Register@@YAJH@Z)
If I change the build settings to
/NODEFAULTLIB:"libc.lib" /NODEFAULTLIB:"nafxcw.lib"

but explicity include nafxcw.lib in the linker I get these errors:

Code:
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol __argc
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol __argc
nafxcw.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(filelist.obj) : error LNK2019: unresolved external symbol __mbctype referenced in function "void __stdcall _AfxAbbreviateName(char *,int,int)" (?_AfxAbbreviateName@@YGXPADHH@Z)
I am thus struggling to work out how I can get this to link!!
Any help would be appreciated.
Confused