PDA

View Full Version : dsound problems


tadobie
10-16-2004, 11:45 PM
I'm at the stage where I wish to add sound to my directx game. if I use #include <dsound.h>
I get 180 errors
I have the sdk and all other includes
<ddraw.h>
<dinput.h>
etc..
gave me no problem, is there something I should know?
It seems that the dsound code is there but all the errors are saying everything in the file is undefined (I'm using vc++ 6.0 by the way ).

SpreeTree
10-17-2004, 02:52 AM
Im not much of an expert with DSound (having had very little experience with it), but even the most expereinced person will first ask you:

"What are the errors. Are they linking errors, compiler errors?"

Post the actual errors so people will have a better understanding of how to help you out :)

Spree

bladder
10-17-2004, 07:29 AM
Yeah, what errors are you getting exactly? A few things that come to mind that you can check which may help though:

* Make sure you are including windows.h *before* you are including dsound.h
* Are you linking to dxgui.lib OR defining INITGUID before the includes.

Off the top of my head those are some things that sometimes cause problems. Without more info can help anymore though.