DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-16-2004, 11:45 PM   #1
tadobie
New Member
 
Join Date: Oct 2004
Posts: 3
Default

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 ).
tadobie is offline   Reply With Quote
Old 10-17-2004, 02:52 AM   #2
SpreeTree
Valued Member
 
SpreeTree's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 265
Default

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
SpreeTree is offline   Reply With Quote
Old 10-17-2004, 07:29 AM   #3
bladder
DevMaster Staff
 
bladder's Avatar
 
Join Date: Sep 2003
Location: Hell
Posts: 1,109
Default

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.
___________________________________________
- TripleBuffer
- Me blog
bladder is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 08:25 AM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.