Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Call to an external DLL
I am trying to make a call to a function within a dll from VFP 6.0. The dll is written in C++. The function returns an integer value flagging whether the function executed successfully or not: 0 for success and non zero for failure. If executed successfully then one of the arguments contains the result set that I need to use. How do I access that value??
I am calling the function the following way:
DECLARE STRING v_o_d IN "RLPOLK.DLL" STRING, STRING
x = v_o_d(outvin, options)
According to the documentation "x" is an integer returned by the function. O is returned on success. Actual data is returned in the "options" argument. But from VFP 6.0 when I print the value of options I get nothing. Please shed some light in this area.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement