Jump to content
  • Advertisement

Archived

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

johnnyBravo

'CoInitializeEx' undeclared identifier?????

This topic is 5203 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

i am getting this error ''CoInitializeEx'' undeclared identifier when i try to use CoInitialiseEx. I got this from the bgmusic sample in the directshow samples in the dx90sdk. It works in their program, but not mine, i copied all their headers and links, and still it cant find it, i include the ole3d.dll and objbase.h, and still it doesnt work. What on earth could be the reason my program can''t find it, and the bgmusic sample can?? Thanks,

Share this post


Link to post
Share on other sites
Advertisement
make sure you include the #define _WIN32_DCOM preprocessor directive at the beginning of your code

Share this post


Link to post
Share on other sites
I know you got it working now, but just for anyone else...

I was scratching my head over this for days - couldn''t work out why the sample worked and mine didn''t... identical code and all

Turns out that they (MS-DX) #define the _WIN32_WINNT = 0x400 in the project properties/config pages.

iirc, setting that up ALSO defines the _WIN32_DCOM flag that was mentioned, because all (?) versions of WINNT since 4.0 have DCOM built in...

just my 2-cents
Jack

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!