How can I use jclcompression in Delphi, is there any example?
Asked Answered
V

1

6

I installed jclcompressin component yesterday. When I use it there is an error "load to 7z.dll". Has anyone example code using the jclcompressıon unit? As if I compress a text file?

Virendra answered 30/6, 2011 at 21:1 Comment(0)
B
9

In order to work with the JclCompression unit you must have the 7z.dll file in the same path where your exe is located. you can get this file downloding the 7zip installer from here (remember always use 32-bit x86 version of the dll).

for samples about using this unit you can check the project located in this folder

<Path to your JCL library>\jcl\examples\windows\compression\archive

or you can check this question

Using 7-Zip from Delphi?

Backstage answered 1/7, 2011 at 5:33 Comment(2)
Hello RRUZ! I did what your answer said. But when i execute the project example the software return: "Cannot load sevenzip library". I just put the 7z.dll in the example folder. Do you have any idea about this problem? Thanks for help!Delinda
Just debug the sevenzip unit and check why the code fails to load the dll.Backstage

© 2022 - 2024 — McMap. All rights reserved.