Need some help!
I first created a RC file with the following:
201 WAVE "c:\pbdll60\sundgolf\sevniron.wav"
at dos prompt I did:
rc wavegolf.rc
pbres wavegolf.res
Once I renamed them it would compile the RES file.
Any feedback would be appreciated,
Phil
------------------
[This message has been edited by Phil Tippit (edited September 08, 2000).]
I first created a RC file with the following:
201 WAVE "c:\pbdll60\sundgolf\sevniron.wav"
at dos prompt I did:
rc wavegolf.rc
pbres wavegolf.res
Code:
$COMPILE EXE $REGISTER NONE $DIM ALL #RESOURCE "wavegolf.pbr" $INCLUDE "win32api.inc" ' i& and lresult& have been dimmed 'within the program for i&=201 TO 201 lresult& = SndPlaySound("#"+TRIM$(STR$(i&)), %SND_RESOURCE OR %SND_ASYNC ) MSGBOX "Playing" NEXT The wave sevniron.wav plays as it should, its Kevin Costner in Tin Cup; "Well, there is always the seven iron." Then I created a RC File with all the following wave files and created the Pbr file. 201 WAVE "c:\pbdll60\sundgolf\sevniron.wav" 202 WAVE "c:\pbdll60\sundgolf\holeone.wav" 203 WAVE "c:\pbdll60\sundgolf\fiveiron.wav" 204 WAVE "c:\pbdll60\sundgolf\getnhole.wav" 205 WAVE "c:\pbdll60\sundgolf\klmostin.wav" 206 WAVE "c:\pbdll60\sundgolf\knother.wav" 207 WAVE "c:\pbdll60\sundgolf\puterror.wav" 208 WAVE "c:\pbdll60\sundgolf\bfuldrv.wav" 209 WAVE "c:\pbdll60\sundgolf\bottom.wav" 210 WAVE "c:\pbdll60\sundgolf\cantplay.wav" 211 WAVE "c:\pbdll60\sundgolf\closer.wav" 212 WAVE "c:\pbdll60\sundgolf\comments.wav" 213 WAVE "c:\pbdll60\sundgolf\damalloy.wav" 214 WAVE "c:\pbdll60\sundgolf\dammit.wav" 215 WAVE "c:\pbdll60\sundgolf\gretputt.wav" 216 WAVE "c:\pbdll60\sundgolf\deepstuf.wav" 217 WAVE "c:\pbdll60\sundgolf\dessert.wav" 218 WAVE "c:\pbdll60\sundgolf\difficlt.wav" 219 WAVE "c:\pbdll60\sundgolf\driver.wav" 220 WAVE "c:\pbdll60\sundgolf\espn.wav" 221 WAVE "c:\pbdll60\sundgolf\kybetter.wav" 222 WAVE "c:\pbdll60\sundgolf\fcrushed.wav" 223 WAVE "c:\pbdll60\sundgolf\fdeep.wav" 224 WAVE "c:\pbdll60\sundgolf\fg.wav" 225 WAVE "c:\pbdll60\sundgolf\finwater.wav" 226 WAVE "c:\pbdll60\sundgolf\fancshot.wav" 227 WAVE "c:\pbdll60\sundgolf\fore.wav" 228 WAVE "c:\pbdll60\sundgolf\gbird.wav" 229 WAVE "c:\pbdll60\sundgolf\getin.wav" 230 WAVE "c:\pbdll60\sundgolf\whatdoin.wav" 231 WAVE "c:\pbdll60\sundgolf\goin.wav" 232 WAVE "c:\pbdll60\sundgolf\goodsave.wav" 233 WAVE "c:\pbdll60\sundgolf\gramps.wav" 234 WAVE "c:\pbdll60\sundgolf\hateit.wav" 235 WAVE "c:\pbdll60\sundgolf\headdown.wav" 236 WAVE "c:\pbdll60\sundgolf\heybud.wav" 237 WAVE "c:\pbdll60\sundgolf\hitech.wav" 238 WAVE "c:\pbdll60\sundgolf\ho.wav" 239 WAVE "c:\pbdll60\sundgolf\humble.wav" 240 WAVE "c:\pbdll60\sundgolf\hurry.wav" 241 WAVE "c:\pbdll60\sundgolf\knowall.wav" 242 WAVE "c:\pbdll60\sundgolf\magbast.wav" 243 WAVE "c:\pbdll60\sundgolf\spfkdup.wav" 244 WAVE "c:\pbdll60\sundgolf\spslut.wav" 245 WAVE "c:\pbdll60\sundgolf\vanished.wav" 246 WAVE "c:\pbdll60\sundgolf\goodball.wav" for i&=201 TO 201 ' 245 lresult& = SndPlaySound("#"+TRIM$(STR$(i&)), %SND_RESOURCE OR %SND_ASYNC) ' note PlaySound also has the same problem. MSGBOX "Playing" NEXT It will not even play 201, less any of the others. I can create a RC file with any of the sounds with only one of them and it will play correctly. What is the problem???. What I'm doing wrong, is there other code I should be using??? Also another note: The following files original names started with the letter a almostin.wav, etc. 202 WAVE "c:\pbdll60\sundgolf\holeone.wav" the 202 file originally was ace.wav until I renamed it holeone.wav 205 WAVE "c:\pbdll60\sundgolf\klmostin.wav" 206 WAVE "c:\pbdll60\sundgolf\knother.wav" 221 WAVE "c:\pbdll60\sundgolf\kybetter.wav" RC.exe would return an error that the file was not found. It seems that RC.exe does not like file names starting with the letter a. In the error message it displayed the following file path and name: "c:\pbdll60\sundgolfybetter.wav" instead of "c:\pbdll60\sundgolf\aybetter.wav"
Any feedback would be appreciated,
Phil
------------------
[This message has been edited by Phil Tippit (edited September 08, 2000).]
Comment