Skip to main content
gamedev.net
🔒 Locked

CoInitializeEx

Started by DmGoober Nov 30, 2000 at 11:43 PM 2 replies 950+ views
Original Post
DmGoober
DmGoober
CoInitializeEX is defined in objbase.h. However, my compiler keeps telling me that CoInitializeEx is an undefined identifier. The funny thing is, the matching function, CoUnInitialize does not cause an undefined identifier error. I have another project that uses CoInitializeEx with no problems. Anyone have any hints?
Alexander "DmGoober" Jhinalexjh@online.microsoft.com[Warning! This email account is not attended. All comments are the opinions of an individual employee and are not representative of Microsoft Corporation.]
DmGoober
DmGoober
i think i know what it is. i was trying to debug the object that called CoInitializeEx in a console application.

Alexander "DmGoober" Jhinalexjh@online.microsoft.com[Warning! This email account is not attended. All comments are the opinions of an individual employee and are not representative of Microsoft Corporation.]
mitchw
mitchw
Yes, CoInitializeEx() is for DCOM or later OS''. It is used to initialize the apartment model that the thread will live in. So if you were using it from a Console app, the correct #define''s werent'' there.
zwdavid
zwdavid
quote:
Original post by DmGoober

CoInitializeEX is defined in objbase.h.

However, my compiler keeps telling me that CoInitializeEx is an undefined identifier. The funny thing is, the matching function, CoUnInitialize does not cause an undefined identifier error.

I have another project that uses CoInitializeEx with no problems.

Anyone have any hints?


Does your program have this line of #include windows.h

zwdavid@hotmail.com

Edited by - zwdavid on December 5, 2000 5:27:03 AM

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.