Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating vfp .dll
Message
 
To
12/09/2005 10:31:15
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01048763
Message ID:
01048766
Views:
28
This message has been marked as the solution to the initial question of the thread.
>Hello,
>
>I am looking for directions to create a vfp .dll file that I can call from another vfp application. I want my .dll to perform some simple functions, and then return an xml stream to the other vfp application.
>
>I have read the documentation on West Wind, but VFP is not my primary language, so I am having some problems understanding it.
>
>Any guidance would be greatly appreciated.
>
>TIA
>
>MAC

You can create this DLL. VFP DLLs are only COM Servers so you must define a class that can handle all your requests, something like:
***** Your main program
DEFINE CLASS MyTest AS Custom OLEPUBLIC && OLEPUBLIC is neccessary word while you making a COM Server
   PROCEDURE Test
       RETURN "This is a Test"
   ENDPROC
ENDDEFINE
In your other application you can do:
myTest = CREATEOBJECT("DLLFileName.MyTest")
MessageBox(myTest.Test)
For more detailed info you can check HELP "Automation and COM Servers" section.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform