Advertisement

Simple problem with Direct Sound?

Started by April 07, 2002 10:20 AM
1 comment, last by savagerx 22 years, 7 months ago
May I enquire how can I include *.wav files to my current directory when doing a new project. What I tried in my rc file:
  
ID_SoundOne WAVE "C:\Documents and Settings\Administrator\Desktop\TienSeck\Windows Game PRogramming Gurus\Waves\entering1.wav"
ID_SoundTwo WAVE "C:\Documents and Settings\Administrator\Desktop\TienSeck\Windows Game PRogramming Gurus\Waves\techno.wav"
  
Header file:
  
#define ID_SoundOne                            103
#define ID_SoundTwo                            104
  
The error msg: --------------------Configuration: Chapter3_Ex1 - Win32 Debug-------------------- Compiling resources... C:\Documents and Settings\Administrator\Desktop\TienSeck\Visual C++ files\Chapter3_Ex1\Resource.rc (7): error RC2135 : file not found: C:\Documents and Settingsdministrator\Desktop ienSeck\Windows Game PRogramming Gurus\Waves\entering1.wav C:\Documents and Settings\Administrator\Desktop\TienSeck\Visual C++ files\Chapter3_Ex1\Resource.rc (8): error RC2135 : file not found: C:\Documents and Settingsdministrator\Desktop ienSeck\Windows Game PRogramming Gurus\Waves echno.wav Error executing rc.exe. Resource.res - 2 error(s), 0 warning(s) The road may be long, wind may be rough. But with a will at heart, all shall begone. ~savage chant
The road may be long, wind may be rough. But with a will at heart, all shall begone. ~savage chant
Hey savagerx,
try doubling the "(back)slash character" like this:

  ID_SoundOne WAVE "C:\\Documents and Settings\\Administrator\\Desktop\\TienSeck\\Windows Game PRogramming Gurus\\Waves\\entering1.wav"ID_SoundTwo WAVE "C:\\Documents and Settings\\Administrator\\Desktop\\TienSeck\\Windows Game PRogramming Gurus\\Waves\\techno.wav"    


I don''t want to impose to you my point of view,but i think it might be easier to put your files in the game folder to reduce the length of filenames.
Hope it helps
"...and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces."----------Scott Meyers, "Effective C++"
Advertisement
Tkx man :D

The road may be long, wind may be rough. But with a will at heart, all shall begone. ~savage chant
The road may be long, wind may be rough. But with a will at heart, all shall begone. ~savage chant

This topic is closed to new replies.

Advertisement