All the good time. I am learning to write in C, which is, in fact, my first useful program.

In general, the idea is this: from some html file the link to the * .war archive is parsed. Guya 7zip-a reports that the type of archive is zip.

Question 1. Is it possible to test the archive for integrity using 7z.dll? Question 2. If it is possible, then how to fasten this DLL to the source code?

If necessary, I can set the code for the entire program.

Thank!

  • Found some BOOL WINAPI SevenZipCheckArchive (LPCSTR _szFileName, const int _iMode). It turns out, the condition will be "if 0, then cout << ahtung" - Sonne
  • See command line options. and use the system call from the code to check the return value - perfect
  • Thank you, I know the parameters of the shell, it was originally planned. I can not find information about what the system returns (7z t archive.7z). And do not tell me, can I do something similar to var = system (7z t archive.7z)? Or the value returned by the system cannot be crammed into a variable? upd. Damn, what I wrote is nonsense, it either pushes the entire function into a constant, or does nothing :( - Sonne
  • just check on the command line, compare two archives, one is normal and the second one in the return value will be either zero or one probably - perfect
  • CRC values ​​and the inscription everything is OK are returned, if the archive is normal, it has not yet been broken. C: \ Users \ Administrator> "C: \ Program Files \ 7-Zip \ 7z.exe" t C: \ Users \ Administrator \ Desktop \ Rust_assemb_Dumper.rar 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 Processing archive: C: \ Users \ Administrator \ Desktop \ Rust_assemb_Dumper.rar Testing DLLMain.cpp Testing Rust_dump.sln Testing Rust_dump.vcxproj Everything is Ok Files: 3 Size: 7766 Compressed: 2532 - Sonne

0