Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a DLL
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00175042
Message ID:
00175044
Views:
52
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform