Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making a call to DLL with variant parameters
Message
From
21/01/1999 14:30:39
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00178164
Message ID:
00178641
Views:
30
David,

Thanks for the quick response.

>Try dropping the array on the VFP side, just use simple memvars. the [in] and
>[out] are just indicators of whether a parameter is for input (read access) or
>output (write access, which must be passed by reference)

Even if this worked, sometimes I need to pass arrays into the function. For instance, inColNames[1] = "CA", inColNames[2] = "LOS ANGELES" to do a lookup on LOS ANGELES county, CA.

Same thing with the return value -- if I only specify a state, then an array of county information is going to be returned.


>OutVals = space(255) && usually have to preallocate this buffer to something
>bigger than needed.

Thanks, that's something I should have remembered. ;-) Doesn't seem to fix my problem, but thanks for your help!

Also, the fifth parameter is actually the return value in VB or VFP, so only four parameters are expected. I tried that too, and got a "too many parameters" error. ;-)

Bruce
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform