FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour funci贸n o similar hb_Dyn_Call()
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
funci贸n o similar hb_Dyn_Call()
Posted: Thu Sep 26, 2019 05:17 PM

Colegas,

Hay la misma funci贸n o similar en xHarbour que hb_DynCall () de Harbour ?

Gracias
Ari

Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
S茫o Paulo - SP - Brasil
www.sisrev.com.br
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: funci贸n o similar hb_Dyn_Call()
Posted: Fri Sep 27, 2019 10:11 AM

I can't find the string "dyncall" in the xHarbour SVN. What is it for?

EMG

Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Re: funci贸n o similar hb_Dyn_Call()
Posted: Fri Sep 27, 2019 12:17 PM
Enrico,

The hb_DynCall () function is for calling functions in Harbour DLLs, I think in xharbour I should use DllCall () or CallDll ().

I received an answer in the topic Retorno da Chamada DLL and there use this function hb_DynCall () as below one of the functions:

Code (fw): Select all Collapse
function mysql_close( hMySql )
聽
聽if !empty( pLib )
聽 聽 hb_DynCall( { "mysql_close", pLib, HB_DYN_CALLCONV_CDECL, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽HB_DYN_CTYPE_LONG_UNSIGNED }, hMySql )
endif
聽
return nil



Ari
Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
S茫o Paulo - SP - Brasil
www.sisrev.com.br
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: funci贸n o similar hb_Dyn_Call()
Posted: Fri Sep 27, 2019 12:23 PM

Both DllCall() and CallDll() are in the xHarbour SVN. I never used them, sorry.

EMG

Continue the discussion