Page 1 of 1

función o similar hb_Dyn_Call()

PostPosted: Thu Sep 26, 2019 5:17 pm
by Ari
Colegas,

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

Gracias
Ari

Re: función o similar hb_Dyn_Call()

PostPosted: Fri Sep 27, 2019 10:11 am
by Enrico Maria Giordano
I can't find the string "dyncall" in the xHarbour SVN. What is it for?

EMG

Re: función o similar hb_Dyn_Call()

PostPosted: Fri Sep 27, 2019 12:17 pm
by Ari
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: Select all  Expand view

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

Re: función o similar hb_Dyn_Call()

PostPosted: Fri Sep 27, 2019 12:23 pm
by Enrico Maria Giordano
Both DllCall() and CallDll() are in the xHarbour SVN. I never used them, sorry.

EMG