Sign in to follow this  

Help! dsound.h is causing errors in my game

This topic is 4684 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

Hello, I am getting 6 errors in my game. I just reformatted my computer, reinstalled and updated VC++6 and DirectX (Dec 2004) sdk. The game compiled before the format. I've been stuck on these errors for weeks. Please help someone!!!!! Here are the errors: c:\program files\microsoft directx 9.0 sdk (december 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (december 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (december 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (december 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (december 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (december 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers I've already included the DirectX libraries and moved them to the top The top directory under Options > Directories > Include files: C:\Program Files\Microsoft DirectX 9.0 SDK (December 2004)\Include The top directory under Options > Directories > Library files: C:\PROGRAM FILES\MICROSOFT DIRECTX 9.0 SDK (DECEMBER 2004)\LIB\x86 Linked Libraries (besides the ususal VC++6 libs): dxguid.lib ddraw.lib dsound.lib dinput.lib winmm.lib Note: Visual studio is installed on the D: and the sdk is on C:. Doubt that matters though, cause it was set up the same way before I reformatted. Note 2: The same errors also occured with the October 2004 sdk.

Share this post


Link to post
Share on other sites
As stated in one of the 3 sticky threads in this forum, the DirectX SDK no longer supports VC++ 6 starting from the recent December update. You'll either need to get the October SDK with the extras package (for the VC++6 compatible D3DX libs) or upgrade to VC++.NET, or get the free express beta and use it.

Share this post


Link to post
Share on other sites
I just reformated my harddrive and I got the same problem. I AM using the _OCTOBER_ release _AND_ the october extras package. I haven't made any change at all to my code.

Does anyone have a clue of how to solve this?

Share this post


Link to post
Share on other sites

This topic is 4684 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this