PlaySndRes()

PlaySndRes()

Postby reinaldocrespo » Fri Mar 03, 2006 5:44 pm

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.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: PlaySndRes()

Postby Enrico Maria Giordano » Fri Mar 03, 2006 5:49 pm

Try SndPlayResource().

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby reinaldocrespo » Fri Mar 03, 2006 6:36 pm

Enrico;

You got it!

Thank you.


Reinaldo.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Postby reinaldocrespo » Fri Mar 03, 2006 6:49 pm

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.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Postby Enrico Maria Giordano » Fri Mar 03, 2006 7:22 pm

I don't know, sorry. Check that a valid wave resource type called "tic" is correctly inserted inside your resource file.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 81 guests