Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare DLL and pointers to pointers
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01146514
Message ID:
01146548
Views:
15
Rodd,

On several occasions I have noticed a difference between declaring a pointer in VFP as STRING @ vs. using memory allocation function -- like GlobalAlloc -- and declaring pointer input parameter as INTEGER.

Read a comment at the bottom of this page:
Reading security permissions for NTFS files and folders
http://www.news2news.com/vfp/?example=516

May be declare ppDestBuffer as INTEGER, allocate memory and pass the handle to PZ_Compress function for this parameter. It may work. Don't forget to release the allocated memory block on exit.

There's another VFP code sample that deals with something like pointers to pointers. It may give you some leads.
How to assemble an array of strings and pass it to external function
http://www.news2news.com/vfp/?example=487
Previous
Reply
Map
View

Click here to load this message in the networking platform