dsound problems

tadobie 101 Oct 17, 2004 at 05:45

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
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 ).

2 Replies

Please log in or register to post a reply.

SpreeTree 101 Oct 17, 2004 at 08:52

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 :)


bladder 101 Oct 17, 2004 at 13:29

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.