Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating vfp .dll
Message
 
À
12/09/2005 10:31:15
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01048763
Message ID:
01048766
Vues:
27
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform