FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour PlaySndRes()
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
PlaySndRes()
Posted: Fri Mar 03, 2006 05: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.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: PlaySndRes()
Posted: Fri Mar 03, 2006 05:49 PM

Try SndPlayResource().

EMG

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
PlaySndRes()
Posted: Fri Mar 03, 2006 06:36 PM

Enrico;

You got it!

Thank you.

Reinaldo.

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
PlaySndRes()
Posted: Fri Mar 03, 2006 06:49 PM
Enrico;

I don't get an error now, but no sound is produced. Here is how i'm using it:

		MenuItem "837 Claims" RESOURCE "837_16" ;
			Action ( SndPlayResource( "tic" ) ,X12_837() ) ;


Any additional ideas?

Reinaldo.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
PlaySndRes()
Posted: Fri Mar 03, 2006 07:22 PM

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

EMG

Continue the discussion