0

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!

1 Answers1

1

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

Tamar E. Granor
  • 3,817
  • 1
  • 21
  • 29