.
.
.
//
// Initalize the COM Threading Model
//
::CoInitializeEx(NULL,COINIT_APARTMENTTHREADED);// Error m_ctrlEditStatus.SetWindowText( _T("Not Initialized yet ..."));
.
.
.
Build:
error C2039: 'CoInitializeEx' : is not a member of '`global namespace''
.
.
//
// Initalize the COM Threading Model
//
::CoInitializeEx(NULL,COINIT_APARTMENTTHREADED);// Error m_ctrlEditStatus.SetWindowText( _T("Not Initialized yet ..."));
.
.
.
Build:
error C2039: 'CoInitializeEx' : is not a member of '`global namespace''
程序编译又出现了错误!
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/CallControl.exe : fatal error LNK1120: 3 unresolved externals这个好象是没有main函数,我是基于对话框程序!,这个错误怎么处理呀!
#define _WIN32_DCOM
#endif
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
libcmtd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/CallControl.exe : fatal error LNK1120: 1 unresolved externals
#pragma comment( lib , "ole32.lib" )