简体   繁体   English

在Visual Foxpro中使用easyzlib.dll

[英]Use easyzlib.dll in Visual Foxpro

The easyzlib generates a dll file, and a tried to register it, but a error appears. easyzlib会生成一个dll文件,并尝试注册该文件,但出现错误。 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." 然后,在Visual Foxpro中创建一个使用ezlib.dll的项目,但会生成其他错误:“找不到DLL的入口点ezcompress。”

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. DECLARE中的​​函数名称区分大小写。 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 对于VFP,您还可以考虑使用Craig Boyd的压缩库: http : //www.sweetpotatosoftware.com/spsblog/2009/08/09/MajorVFPEncryptionUpdate.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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