CoInitializeEx()
-
Hi All i need to call this CoInitializeEx() in my application. compiler giving error msg this error C2065: 'CoInitializeEx' : undeclared identifier i have include the respective heaer file "objbase.j" what i have to do compile ? thanks
-
Hi All i need to call this CoInitializeEx() in my application. compiler giving error msg this error C2065: 'CoInitializeEx' : undeclared identifier i have include the respective heaer file "objbase.j" what i have to do compile ? thanks
shadrach_india wrote:
i have include the respective heaer file "objbase.j"
I think this is a typo in your post but this is objbase.h Anyway, post the line of code where you call it, it's probably a typo.
Cédric Moonen Software developer
Charting control [Updated - v1.1] -
shadrach_india wrote:
i have include the respective heaer file "objbase.j"
I think this is a typo in your post but this is objbase.h Anyway, post the line of code where you call it, it's probably a typo.
Cédric Moonen Software developer
Charting control [Updated - v1.1]Inside the a thread BOOL CClientThread::InitInstance() { //CoInitialize(NULL); CoInitializeEx(NULL,COINIT_MULTITHREADED); m_TimeLock.Lock(); m_timeLastAction = CTime::GetCurrentTime(); m_TimeLock.Unlock(); // Attach the socket handle to a CSocket object. // This makes sure that the socket notifications are sent to this thread. m_ClientSocket.Attach(m_hSocket); m_ClientSocket.m_pThread = this; ---- ---- ---- }
-
Inside the a thread BOOL CClientThread::InitInstance() { //CoInitialize(NULL); CoInitializeEx(NULL,COINIT_MULTITHREADED); m_TimeLock.Lock(); m_timeLastAction = CTime::GetCurrentTime(); m_TimeLock.Unlock(); // Attach the socket handle to a CSocket object. // This makes sure that the socket notifications are sent to this thread. m_ClientSocket.Attach(m_hSocket); m_ClientSocket.m_pThread = this; ---- ---- ---- }
And what is your exact include directive ?
Cédric Moonen Software developer
Charting control [Updated - v1.1] -
And what is your exact include directive ?
Cédric Moonen Software developer
Charting control [Updated - v1.1]In Stdafx.h #define _WIN32_WINNT 0x0400 #define _ATL_FREE_THREADED #include -- modified at 9:48 Monday 6th November, 2006
-
In Stdafx.h #define _WIN32_WINNT 0x0400 #define _ATL_FREE_THREADED #include -- modified at 9:48 Monday 6th November, 2006
hi Problem solved