Zip / Unzip options within an APP?

If your app is not ABC, you might need to set ABCLinkMode and ABCDLLMode.

It gets a little more complicated for Multi-DLL, but if you just have an EXE (and the switches aren’t already set), try setting the switches in your project

My project is ABC, also Multi-DLL.

1 Like

For tomorrow I can prepare an example. I’m going to make sure that it compile and run as abc or not. regards

1 Like

ZIP.ZIP (5,9 KB)

This is taken from a working program. Should work. If you have problems send pm.

1 Like

The code creates a zip archive file with a file size, but the archive is empty.
Also, the program throws an error when it tries to archive a file that is currently open. Is there a way to archive a file even if it is currently open?

well, here it works ok. Send me your code to check it.
Open files, I think that needs special treatment. Perhaps it depends on the share mode of then open file. I didn’t need to zip open files so I haven’t analyzed it.

is there a way to archive a file even if it is currently open?

Try making a copy of the open file and archiving the copy?