Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need advice on using a VFP DLL
Message
From
25/04/2008 21:22:01
 
 
To
25/04/2008 14:51:13
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01313145
Message ID:
01313252
Views:
15
>Well I'm stumped already. I compiled a bunch of functions and procedures into an exe as a test. I tried to call a procedure using DO myProc IN myTest.exe WITH 1. While this worked from the command window (i.e., no crash or errors), my problem is that the procedure is supposed to return a string. How do I get the returned value with a DO ... IN ... syntax?

Most of my code works with objects, and you if you have a little helper function in the app returning the objects

function appobject(toRefReturn, tcClass, tcOptClasslib)
toRefReturn = newobject(tcClass, tcOptClasslib)

do appobject in xx.app with loRet, (m.tcClass), (m.tcOptClasslib) && I standardize on return value as 1. par for that pattern

or you set proc to the app and can call similar functions (which must have a distinct name then! One of the few kinks in this approach, read the help about it - fpw was smarter here) returning values. With the objects you work the usual way, calling methods and setting properties.

HTH

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform