>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:
DEFINE CLASS MyTest AS Custom OLEPUBLIC
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.