Page 1 of 1
PlaySndRes()
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Fri Mar 03, 2006 5:44 pm
by reinaldocrespo
Hi.
Trying to play sound in a resource. PlaySndRes() is documented on the .ng file. But at compile time I get the error below.
Error: Unresolved external '_HB_FUN_SNDPLAYRES' referenced from F:\MP\X12\MAIN.OBJ
Any ideas?
Reinaldo.
Re: PlaySndRes()
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Fri Mar 03, 2006 5:49 pm
by Enrico Maria Giordano
Try SndPlayResource().
EMG
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Fri Mar 03, 2006 6:36 pm
by reinaldocrespo
Enrico;
You got it!
Thank you.
Reinaldo.
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Fri Mar 03, 2006 6:49 pm
by reinaldocrespo
Enrico;
I don't get an error now, but no sound is produced. Here is how i'm using it:
- Code: Select all Expand view
MenuItem "837 Claims" RESOURCE "837_16" ;
Action ( SndPlayResource( "tic" ) ,X12_837() ) ;
Any additional ideas?
Reinaldo.
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Fri Mar 03, 2006 7:22 pm
by Enrico Maria Giordano
I don't know, sorry. Check that a valid wave resource type called "tic" is correctly inserted inside your resource file.
EMG