Jump to content
  • Advertisement

Archived

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

Kylotan

Problem including dsound.h

This topic is 6943 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 have a .cpp file that includes dsound.h as its first included file. However, the compiler (MSVC5.0) chokes on it with the following line: c:\CODING\DX7ASDK\INCLUDE\dsound.h(61) : error C2239: unexpected token ''*'' following declaration of ''WAVEFORMATEX'' Which points to this: typedef const WAVEFORMATEX *LPCWAVEFORMATEX; Are they trying to tell me that WAVEFORMATEX is not defined yet? If so, why don''t they include something relevant in their header file? And does WAVEFORMATEX actually need to be defined just to typedef a pointer to it? (I guess they should call it struct WAVEFORMATEX, perhaps.) The help says to include mmreg.h for WAVEFORMATEX, but that just throws out the maximum 102 errors. I''ve been coding all day and am sick of debugging! Can anyone shed some light on this please?

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.

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!