Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get returned value from .exe
Message
 
To
13/09/2006 15:04:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01153463
Message ID:
01153494
Views:
16
>there is help about com somewhere ???? :)

I don't know how to do this in WINDEV (maybe in its HELP there are some articles about how to create a COM server)
but in VFP you could do:
DEFINE CLASS MyCOMClass as Session OLEPUBLIC
     PROCEDURE MyTest(param1 AS String, param2 AS integer) AS String
           *** do whatever you want to do here
           RETURN [This is a test]
     ENDPROC
ENDDEFINE
Then you cold compile your EXE and when you install it on some computer you need to regiter that class so you need to run your EXE with parameter YourEXEName /regserver. Then in every other applications you could use:
oMyTest = CREATEOBJECT([YourEXEName.MyCOMClass]) && or whatever the laguage syntax for creating object is
? oMyTest.MyTest
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