
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