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:
00175046
Views:
45
>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???

In addition to what David told you, the reason that it cannot find the entry point is that there is no such function in Win32. If you follow his instructions (remembering to register the OLE server), you shouldn't have a problem. For more information see Chapter 16 in the Developers Guide.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform