Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLLs
Message
 
 
À
25/08/1998 10:22:51
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: DLLs
Divers
Thread ID:
00128483
Message ID:
00129733
Vues:
22
Jim

VFP creates OLE server DLLs and EXEs, not callable API type of DLLs.

Your calling code should be:

oServer = createobject( "TheClassLibName.vfiled_class" )
? oServer.insfld()

If you want to create a UI the server must be compiled as an EXE not a DLL.

>Jim,
>
>Thanks for the response. I got the DLL to compile, but when I try and call the procedure in the class from a seperate project the procedure is not found. The code is below, please help.
>
>
>*********************** DLL CODE *****************************************
>DEFINE CLASS vfiled_class AS CUSTOM OLEPUBLIC
> PROCEDURE insfld
> RETURN "JIM"
> ENDPROC
>ENDDEFINE
>
>*********************** Program *****************************************
>Declare string insfld IN "F:\ameritec\ameritec.400\oldfiles\dlltest.dll"
>? insfld
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform