Convert kitchen-screen VB.NET to FWH

Convert kitchen-screen VB.NET to FWH

Postby Otto » Sat Dec 08, 2007 4: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

Image
User avatar
Otto
 
Posts: 6312
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Sat Dec 08, 2007 6:31 pm

Otto,

Code: Select all  Expand view
#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
Antonio Linares
Site Admin
 
Posts: 42063
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby driessen » Sat Dec 08, 2007 7: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby Antonio Linares » Sat Dec 08, 2007 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42063
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby driessen » Sat Dec 08, 2007 8: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby Antonio Linares » Sat Dec 08, 2007 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42063
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Sat Dec 08, 2007 8:57 pm

With WINMM.DLL it works on my VISTA business .
Thank you.
Best regards,
Otto
User avatar
Otto
 
Posts: 6312
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

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