Convert kitchen-screen VB.NET to FWH

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Convert kitchen-screen VB.NET to FWH

Post by Otto »

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

Image
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Otto,

Code: Select all

#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
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

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. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

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. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

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