Archived

This topic is now archived and is closed to further replies.

Can't get CoInitializeEx working... in directplay ... says undeclared...

This topic is 5113 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im trying to create a program to create a host with directplay8. In the sdk sample/tutorial host, it has 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? [edited by - johnnyBravo on December 14, 2003 1:53:32 AM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
#if (_WIN32_WINNT >= 0x0400 ) || defined(_WIN32_DCOM) // DCOM

If you don''t have the right OS version, just use CoInitialize() instead.

Share this post


Link to post
Share on other sites
with that i get fatal error C1004: unexpected end of file found,

ive got windows xp proffessional, and the command works in the directplay host tutorial,

so i dont see why its not working. Ive looked all over the internet with people having the exact same problem but their cures dont seem to be mine.

Share this post


Link to post
Share on other sites