rikyoz / bit7z

A C++ static library offering a clean and simple interface to the 7-zip shared libraries.
https://rikyoz.github.io/bit7z
Mozilla Public License 2.0
627 stars 114 forks source link

can you post a sample solution in the wiki? #6

Closed EruditePig closed 7 years ago

EruditePig commented 7 years ago

Hi

I checked the bit7z everyday to see whether you add the callback function. Thank you very much, I am really appreciate your effort.

I try to make a sample solution to test the function and I can compile and link, But when I debug the code ,the line "Bit7zLibrary lib(L"7z.dll");" will abort. I put the 7z.dll in the folder where the exe exist and the dependency walker said nothing dll was missing.

So, can you post a sample solution to teach me how to use the lib? Thank you~

rikyoz commented 7 years ago

Hi, you are welcome! As soon as I can I will provide a complete example in the wiki. Anyway, in the past I had a similar problem when, by mistake, I tried to use a 64 bit 7z.dll with a 32 bit program or viceversa; maybe this is the problem you are encountering! If not, does it throw an exception or simply crashes? And in the first case, what is the error message of the exception?

EruditePig commented 7 years ago

Hi, you are right , i download a 32bit 7z.dll, all issue solved.

Thank you!