Quote:Original post by Twinsen LBA
Quote:Original post by kiwibonga
The compiler won't put the sound files in the exe for you; you have to bundle them with the program (in a zip file, for instance), making sure to use the same paths as in your build environment.
Ok great.
So how do i do that please.
Get a program like 7zip or winzip or winrar that can create .zip archives, install it, then it'll add options to the menu you get when you right click a file. Select the entire contents of the folder where your game and sound files are located, and right click, then select the option to add the files to an archive that the program added.
Since the program works for you but not others, I think your problem is that you're using absolute paths (like C:\somefolder\sound.wav) instead of relative paths (like soundfolder\sound.wav, where "soundfolder" is a subfolder in the folder where your game is located).
So change your code so it doesn't use drive letters and only tries to access files that are in a subfolder of the game's main folder (or in the same folder as the exe). That should solve the problem.
EDIT: By the way, it would be so much simpler for us to help you if you just posted your code...