Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a DLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00175042
Message ID:
00175044
Vues:
54
Ken,

VFP DLLs are ActiveX Servers, so you don't call them you CreateObject them.

oServer = CreateObject( "paym.PaymDLL" )
? oServer.SomePublicMethod()

>In VFP 6.0 I'm trying to create my first .DLL. Needless to say, the help info is sketchy. I got this far:
>
>1. Created a project called "Paym"
>2. Created a class library named "PaymDLL" with a container class nameed "PaymDLL" defined as OLEPublic
>
>3. The container class has a method with the following:
>RETURN 1
>
>4. Built the DLL
>
>In another form I have a command button to run the DLL, which has this code:
>
>DECLARE INTEGER paymdll IN win32api
>?PaymDLL()
>
>When I click the button I get the msg:
>
>Cannot find entry point paymdll in the DLL.
>
>Any DLL gurus out there???
df (was a 10 time MVP)

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

Click here to load this message in the networking platform