Home > database >  Pb12.5 call zlib compress function error
Pb12.5 call zlib compress function error

Time:10-20

Pb12.5 call zlib compress functions always prompt "bad runtime function reference", please give directions!

Disclaimer:
The Function Long compress (Ref Blob compr, Ref Long comprLen, Ref Blob buf, Long buflen) Library "zlib. DLL
"The Function Long uncompress (Ref Blob uncompr, Ref Long uncomprLen, Ref Blob compr, Long lcomp) Library "ZLIB. DLL
"
Call:
Blob bl_data_zip
Long l_len l_len_zip, l_rtn

L_len=len (bl_data)
L_len_zip=l_len * 1.01 + 13
Bl_data_zip=blob (space (l_len_zip))
L_rtn=compress (bl_data_zip l_len_zip, bl_data, l_len)

CodePudding user response:

Statement has a problem, instead of the following statement, I use in the project, there is no problem is
//compression
The Function Long compress (Ref Blob compr, Ref Long comprLen, Ref Blob buf, Long buflen) Library "zlibwapi. DLL" alias for "compress; Ansi
"//unzip
The Function Long uncompress (Ref Blob uncompr, Ref Long uncomprLen, Ref Blob compr, Long lcomp) Library "zlibwapi. DLL" alias for "uncompress; Ansi"

CodePudding user response:

Thank you moderator! Revised statement, or the same mistake, and zlibwapi. DLL version and the position of the matter?

CodePudding user response:

The zlibwapi. DLL file into the system32 directory, is no longer an error, but is compressed and the length of the data before compression, len (bl_data_zip), found that the compressed data length is about 2 times before compression, the compression, the greater the don't understand, also give advice or comments please moderators!

CodePudding user response:

Get a larger content test, such as a few M, the content of the small can't see,
  • Related