Jump to content
  • Advertisement

Archived

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

Glass_Knife

CoInitializeEx Question

This topic is 5812 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 trying to start up direct music... according to the DirectX 7 docs, it says do this...
        
if( FAILED( CoInitializeEx( NULL, COINIT_APARTMENTTHREADED  ) ) )
  //error

TOTWGPG  says do this:
if( FAILED( CoInitialize( NULL ))) 
  //error

    
If I use CoInitialize, no problems, but using CoInitializeEx, the compiler says: error C2065: 'CoInitializeEx' : undeclared identifier now I'm sure there is somthing that needs to be included, but I don't know what it is. Or does it really matter? //My header files included in code: #include <windows.h> #include <objbase.h> #include <mmsystem.h> #include <dsound.h> #include <dmksctrl.h> #include <dmusici.h> #include <dmusicc.h> #include <dmusicf.h> //.lib things included... dsound.lib winmm.lib dxguid.lib I think, therfore I am. I think? [edited by - glass_knife on August 18, 2002 8:20:08 AM] [edited by - glass_knife on August 18, 2002 8:21:36 AM] [edited by - glass_knife on August 18, 2002 8:22:46 AM]

Share this post


Link to post
Share on other sites
Advertisement

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