compiler error ::CoInitializeEx(NULL, COINIT_MULTITHREADED); 
Author Message
 compiler error ::CoInitializeEx(NULL, COINIT_MULTITHREADED);

Hi all,

I created a client but haven't been able to
compile it... it seems like the objbase.h is
reachable but it's getting:

error C2039: 'CoInitializeEx' : is not a member of '`global namespace''

How can I fix this?

Thanks in advance,
Best Regards,
Giovanni



Sun, 11 Jul 2004 18:18:15 GMT  
 compiler error ::CoInitializeEx(NULL, COINIT_MULTITHREADED);
Opppsss

Finally found a free-threaded client sample :-)

#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions

// you need the following three lines of codes
#define _WIN32_WINNT 0x0400
#define _ATL_FREE_THREADED
#include <objbase.h>

Solves it...

And thanks anyway ;-)
Best regards,
Giovanni


Quote:
> Hi all,

> I created a client but haven't been able to
> compile it... it seems like the objbase.h is
> reachable but it's getting:

> error C2039: 'CoInitializeEx' : is not a member of '`global namespace''

> How can I fix this?

> Thanks in advance,
> Best Regards,
> Giovanni



Sun, 11 Jul 2004 18:27:36 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem About CFileDialog object and CoInitializeEx(NULL, COINIT_MULTITHREADED).

2. CoInitializeEx(NULL,COINIT_MULTITHREADED) undeclared identifier

3. CoInitializeEx(NULL,COINIT_MULTITHREADED)

4. VC++6.0/SP3 Compiler Error: INTERNAL COMPILER ERROR

5. CAxWindow problem with COINIT_MULTITHREADED

6. COINIT_MULTITHREADED and W98

7. Drag&drop and COINIT_MULTITHREADED

8. CWnd::Create() bombs out with COINIT_MULTITHREADED

9. Drag&drop and COINIT_MULTITHREADED

10. C1001: INTERNAL COMPILER ERROR (compiler files 'msc1.cpp', line 2844)

11. Compiler error in compiler file msc1.cpp line 1786

12. C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1794)

 

 
Powered by phpBB® Forum Software