简体   繁体   中英

Use easyzlib.dll in Visual Foxpro

The easyzlib generates a dll file, and a tried to register it, but a error appears. Then, a create a project in Visual Foxpro for use the ezlib.dll, but other error generates: "Cannot find entry point ezcompress int the DLL."

This is the test code:

    DECLARE Integer ezcompress IN ezlib.Dll;
      unsigned char pDest, long pnDestlen, const unsigned char pSrc, long nSrcLen;
    DECLARE Integer ezuncompress IN ezlib.Dll;
      unsigned char pDest, long pnDestlen, const unsigned char pSrc, long nSrcLen;

    arq = GETFILE('TXT', 'ProcuraR UM txt:.', '', 1, 'Navegar')
    result = ezcompress(0, 0, @arq, 0)

    if(result >= 0)
        ? "Comprimido com sucesso!"

    Read Events

Help me please!

Function names in DECLARE are case-sensitive. Could that be your issue?

For VFP, you also might consider using Craig Boyd's compression library: http://www.sweetpotatosoftware.com/spsblog/2009/08/09/MajorVFPEncryptionUpdate.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM