Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when calling DLL function using DECLARE statement
Message
 
À
18/04/2001 10:31:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00496655
Message ID:
00496658
Vues:
9
>Hi there,
>
>i encounter a problem when using a function from a FoxPro dll.
>These are the seps I took;
>
>- DECLARE the function i want:
> DECLARE INTEGER OptelFuntie IN "D:\PROJECTS\DLLTEST\PROJECT1.DLL";
> INTEGER val1, INTEGER val2
>
>- Now i want to call his function, but then i encounter the problem:
>
> ln_Uitkomst = OptelFunctie(3,4)
>
>Error: cannont find entry point OptelFunctie in the DLL.
>
>My DLL looks like this;
>
>function OptelFunctie
>LPARAMETERS val1,val2
>
>private val3
>
>val3=0
>val3 = val1+val2
>return val3
>
>endfunc
>
>define class function_class as custom olepublic
>
>enddefine
>
>--
>
>Does anyone know the solution for this?
>please mail me at Erwin.Tobben@marketscan.nl
>
>thanks in advance!

VFP DLLs are COM objects, not C type DLLs. They must be registered, then an instance of the object instantiated using it's ProgID with CREATEOBJECT().
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform