Sign in to follow this  

having problem with dsound.h include file

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

hi everyone, i am having problem with dsound.h include file. i ve directx 9.0 sdk (october 2004) installed. but when i compile my app i get a error message as below, can anyone help me out?
mainFrame.cpp
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1'
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2'
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers
F:\my projects\The Panzer Invasion2\MainFrame.cpp(784) : error C2039: 'LoadObjectFromFile' : is not a member of '_NoAddRefReleaseOnCComPtr<struct IDirectMusicPerformance8>'
The Panzer Invasion2.cpp
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1'
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2'
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers
Generating Code...
Error executing cl.exe.
Creating browse info file...



Share this post


Link to post
Share on other sites
These datatypes were originally part of the DirectX SDK in a file called "BaseTSD.h". Since the release of DirectX 9, that header has become a part of the Windows Platform SDK. You will either need to copy the header from the DirectX 8 SDK to one of your linked 'includes' directories or download and install the latest version of the Windows Platform SDK. I would strongly recommend the latter.

[edit]
Are you still using MS VC 6.0? If so you may not be able to use the latest version of the Windows Platform SDK. I can't remember if it still supports 6.0 or not.
[/edit]

Share this post


Link to post
Share on other sites

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