Archived

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

johnnyBravo

'CoInitializeEx' undeclared identifier?????

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
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