System ERROR: E_INVALIDARG. Make it useful and say which exatcly it is
A free file archiver for extremely high compression
Brought to you by:
ipavlov
By example of zip encryption
7z a -tzip -mx0 -p"pass" -mem=AES256 secret.zip secret.txt
I tried to do it with 7-zip.
7z a -t7z -mx0 -p"pass" -mem=AES256 secret.7z secret.txt
and filed with
System ERROR:
E_INVALIDARG
And then perplexed by this error I tested every possible argument and eventually found a problem. Now, to the point - It sounds like VC compilation errors: error CS0305
. Very smart, Very useful. ¯\_(ツ)_/¯
It would be better, more descriptive and user friendly if this argument was saying which argument exactly is invalid.
No way now.
Because there is no interface for text error string between 7z client program and zip handler code when clients sends parameters to zip handler.
Zip handler can return only error number
(HRESULT)
:E_INVALIDARG
.