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:
01146522
Vues:
23
Hi Rodd,

You can build C structures with Heap allocation class File #9482.

>I'm testing out a 3rd party product that we want to being using for both cypto services and file compression (.zip). The product is called PolarZIP and PolarCrypto (two packages, same Polar vendor).
>
>Anyhow, we want to use the Win32 DLL as opposed to the ActiveX control so that we don't have to mess with registering the control on each users machine. In the documentation, one of the methods of the DLL is shown as:
>
>int PZ_Compress(void* pSrcBuffer, unsigned long lLenSrcBuffer,void** ppDestBuffer, unsigned long* plLenSrcBuffer, bool bEndOfData)
>
>
>
>If my memory serves me right, the 3rd parameter is a pointer to a pointer of a string. I tried declaring the method as follows but I'm sure I have the 3rd parm wrong.
>
>delcare integer PZ_Compress in c:\test\polarzip.dll string @ source, long srclen, string @ dest, long destlen, integer end
>
>
>Everything seems to work, I even get a 0 returned (a good sign). However, my destination buffer is empty while my destination buffer length says it's 43 characters. (I'm kind of wondering where in memory it just through that zipped text.)
>
>Is there any way to use this function in VFP or are we just plain out of luck when it comes to pointers to pointers?
>
>Thanks for any help !
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform