Archived

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

okonomiyaki

Error including dsound.h

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