Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing strings to DLL
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00588408
Message ID:
00591230
Views:
28
>The string passed in VFP is a 32-bit pointer to a fixed-length array of char, whose exact length is LEN(string variable state when passed). <

If you pass this 4 byte pointer to a function in DLL and that function changes the string value and/or length withour moving it in the memory, then VFP can receive back the value for this string. How VFP moves the string later doesn't matter. Otherwise what is the meaning of passing variables by reference if they cannot be altered?

>The documentation of exactly what the form of data is passed by VFP to the DECLARE...DLL function is documented rather precisely in the on-line help;<

I have read it many times but it doesn't help me with the problem I have outlinded.

Joshua
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform