Error including dsound.h

Started by
1 comment, last by okonomiyaki 20 years, 5 months ago
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!
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.
Include <<>mmsystem.h<>>

HTF do i insert braces??

[edited by - Endurion on October 23, 2003 3:28:38 AM]

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

This topic is closed to new replies.

Advertisement