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:
00175050
Vues:
33
>Ken,
>
>VFP DLLs are ActiveX Servers, so you don't call them you CreateObject them.
>
>oServer = CreateObject( "paym.PaymDLL" )
>? oServer.SomePublicMethod()

Thanks, David. That got me a bit further. The DLL runs, but I get the message:

OLE Dispatch code 1031 from...yadda yadda
User interface option not allowed at this time.

>
>>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???
Ken Sorce
Team RAD, Inc.
Rapid Application Developers
Ken@TeamRAD.com
www.teamrad.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform