Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing strings to DLL
Message
From
04/12/2001 07:56:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00588408
Message ID:
00589152
Views:
20
>>VFP doesn't support pointers or structures.
>
>Sure it supports pointers and structures. You can't dereference a pointer to a variable that you didn't create, but you can pass VFP variables by reference, which is the same thing as passing a pointer. As for structures, see Q181289.

Not to pick nits, Mike, but structures containing self-referential pointers are a b!tch in VFP strings, the VFP string gets moved and poof! the pointer is invalid - I use a static block allocated using ClsHeap in these instances, and I have the necessary UDFs to dereference pointers for non-self-referential structures included (GetMem() and GetMemString()) in the class.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform