Sign in to follow this  
nullsmind

dsound.h problems with VS 2005 Standard

Recommended Posts

nullsmind    100
I have a running D3D program with joystick support and all, but when I add dsound.h, I get 21 errors. I have dsound.lib included, so that's not the problem. Here's what I'm getting: Compiling... DirectX Application.cpp c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(230) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(230) : error C2143: syntax error : missing ';' before '*' c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(230) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(349) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat' c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(349) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(349) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(365) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat' c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(365) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(365) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(416) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat' c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(416) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(416) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(425) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat' c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(425) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(425) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(686) : error C2061: syntax error : identifier 'LPWAVEFORMATEX' c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(696) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX' c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(770) : error C2061: syntax error : identifier 'LPWAVEFORMATEX' c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(780) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX' c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(1041) : error C2061: syntax error : identifier 'LPWAVEFORMATEX' c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(1099) : error C2061: syntax error : identifier 'LPWAVEFORMATEX' Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\DirectX Application\DirectX Application\Debug\BuildLog.htm" DirectX Application - 21 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
gumpy    795
wild guess...

// you're defining this?
#define WIN32_LEAN_AND_MEAN

// you'll need these two headers included before dsound.h
#include <windows.h>
#include <mmsystem.h>
#include <dsound.h>

Share this post


Link to post
Share on other sites

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