Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a VB6 function in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00928678
Message ID:
00928759
Vues:
39
Hi Anatoliy, thanks once more!

I modified my calling program and passed the sample VB code to the guy in charge of development of that function.

Regards,

Fernando

PS. I've been very "active" bothering you all great fellows with my questions. Thanks to all that have been supporting me, hope I could retribute!

>Hi Fernando,
>
>There could be a problem with the result's STRING type.
>
>So may be instead of
>DECLARE STRING FunctionToExecute IN vb6dll STRING pStringParameter
>program your VB interface to be called as
>DECLARE INTEGER FunctionToExecute IN vb6dll;
>	STRING pStringParameter, STRING @pOutputParameter
>
>So the function may return Integer value indicating success (1) or failure (0). And the result is retuned with the second parameter.
>This is how VB code might look:
>Function FunctionToExecute(ByRef string1, ByRef string2) As Integer
>	Dim result As Integer
>...
>	string2=... 'assign something to this string
>	Return result
>End Function
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform