FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Convert kitchen-screen VB.NET to FWH
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Convert kitchen-screen VB.NET to FWH
Posted: Sat Dec 08, 2007 04:50 PM
Convert VB.NET to FWH

Hello Antonio,

I am trieing to convert my kitchen screen to Fivewin. Now I have problems with playing wav-files.
The kitchen screen has for each meal a wav-file and plays this file to announce the order.

The error is on loading MMSYSTEM.DLL .
This runs on a VISTA PC.

Regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Convert kitchen-screen VB.NET to FWH
Posted: Sat Dec 08, 2007 06:31 PM
Otto,

#include "FiveWin.ch"

function Main()

   SndPlaySound( "test.wav" )

return nil

DLL FUNCTION SndPlaySound( cFile AS LPSTR, nType AS WORD ) AS BOOL ;
  PASCAL FROM "sndPlaySoundA" LIB "WINMM.DLL"
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Convert kitchen-screen VB.NET to FWH
Posted: Sat Dec 08, 2007 07:26 PM

Antonio,

I use SndPlaySound() in my application, but I don't have DLL FUNCTION SndPlaySound().

Why is that ? Difference between Harbour and xHarbour ?

Thanks.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Convert kitchen-screen VB.NET to FWH
Posted: Sat Dec 08, 2007 07:47 PM

Michel,

> Why is that ? Difference between Harbour and xHarbour ?

Its a difference between XP and Vista.

XP uses "MMSYSTEM.DLL" and Vista uses "WINMM.DLL"

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Convert kitchen-screen VB.NET to FWH
Posted: Sat Dec 08, 2007 08:04 PM

Antonio,

I habe FWH 7.12 and xHarbour Project Builder Nov. 2007. In my application SNDPLAYSOUND() is working fine on XP and on Vista.

So, to tell you the thruth : I don't understand.

Thanks anyway.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Convert kitchen-screen VB.NET to FWH
Posted: Sat Dec 08, 2007 08:12 PM

Michel,

It may be a difference caused by the use of Borland C.

Here testing on Vista Ultimate, FWH SndPlaySound() does not work.
But the example code that I have posted is working fine.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Convert kitchen-screen VB.NET to FWH
Posted: Sat Dec 08, 2007 08:57 PM

With WINMM.DLL it works on my VISTA business .
Thank you.
Best regards,
Otto

Continue the discussion