Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declare DLL and pointers to pointers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01146514
Message ID:
01146548
Vues:
14
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform