c++: Can't get CoInitializeEx working...... says undeclared...
ive got this from a directx sdk example..directplay8
But this is a c++ command so thats why im asking here.
ive got:
CoInitializeEx(NULL, COINIT_MULTITHREADED);
But when i try that in my program i get errors that CoInitializeEx and COINIT_MULTITHREADED are undeclared.
Ive got the ole32.dll linked and objbase.h included. So whats the problem?
Make sure that _WIN32_WINNT is #defined to at least 0x400 before the header is included.
"Sneftel is correct, if rather vulgar." --Flarelocke
"Sneftel is correct, if rather vulgar." --Flarelocke
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement