LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passing a filename for Playsound()?

Hi!I have to call a function inside a dll for pocket pc 2002 from labview7: the function contains Playsound, in fact I want my pocket pc to play a file.wav, the problem is passing the filename as a parameter..as a CStr?PlaySound doesn't recognize it!
what's the right way to pass a string/filename for Playsound?
thank you very much!!!
Marta
0 Kudos
Message 1 of 2
(2,246 Views)
To call a DLL from your PDA application requires you do what is reported in THIS DOCUMENT. There are several steps to perform to make your code suitable for PPC.

HERE you will find an example that shows what needs to be done.

Passing the Filename parameter to the Playsound Function in Winmm.dll is pretty straightforward. Use StdCall conventions and use CString for file name.

Regards,

AlessioD
0 Kudos
Message 2 of 2
(2,234 Views)