Jump to content
  • Advertisement

Archived

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

okonomiyaki

Error including dsound.h

This topic is 5530 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 get errors such as this: c:\DX9SDK\Include\dsound.h(770) : error C2061: syntax error : identifier ''LPWAVEFORMATEX'' All the errors seem to be caused by it not understanding the LPWAVEFORMATEX keyword. This happens just when including dsound.h and not even using it (meaning errors occur withing dsound.h). What else do I have to include or define to make this work? No, it''s not a linker error (I''ve linked dsound.lib anyway). Thanks!

Share this post


Link to post
Share on other sites
Advertisement
I know you get that problem if you''re using MFC. I haven''t found a way to fix the problem with MFC myself, so I''ll keep looking around. If you want/can, get rid of MFC and just include windows.h. That will fix your problem, but then you won''t have any of the MFC stuff to use. There''s a way around it, I know, just need a while to figure it out.

Hope that helps.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!