Hello! I'm trying to create my own manager. Pay attention to what it is in 7 zip. Took some trial path to the directory. And I began to work with it through the function: FindFirstFile/FindNextFile. However, a problem has surfaced. FIRST run application loop do { ~~~ ~~~ ::SHGetFileInfo( ::DrawIconEx( ::TextOut( ~~~ ~~~ } while(::FindNextFile(...., .....)!= 0); works for a very long time. And at the slightest start of the application, the same tsmkl works fine. I noticed that this slowdown occurs...
Возвращаясь в Вашему последнему сообщению... В общем, сделал так: Непосредственно перед вызовом IInArchive::Extract отдельное окно вывода принимает значение CMyComPtr<iprogress> _progress. Которое , в свою очередь, было получено в потоке разархивации по схеме: ~~~</iprogress> CArchiveExtractCallback* extractCallbackSpec = new CArchiveExtractCallback; CMyComPtr<IArchiveExtractCallback> extractCallback(extractCallbackSpec); CMyComPtr<IProgress> _progress = extractCallback; ~~~ В его обработчике сообщения...
About Z7_COM7F_IMF(CArchiveExtractCallback::SetCompleted : To be honest, for someone who has not dealt with archives before, the solution is not obvious. I understand correctly, I need to create CMyComPtr<iprogress> _progress, which will somehow take the values of some variable in the overridden function CArchiveExtractCallback::SetCompleted, while the function is running IInArchive::Extract ??</iprogress>
In Client7z.cpp If the library function IInaArchive::Extract is busy extracting a very large archive, is it possible to get the number of bytes extracted at the same time ?? For the purpose of obtaining percentages.
Substituted the value Rar5(0xCC) and everything turned out. Thank you
Thank you. Tried. If the value is - CLSID_Format {23170F69-40C1-278A-1000-000110030000} it still doesn't open the archive. Failed function HRESULT hrzlt = archive->Open(file, &scanSize, openCallback); hrzlt == 1 Other types of popular archives open successfully. What else can you advise?
Archives .rar in my program I tried to unpack with the value DEFINE_GUID_ARC (CLSID_Format, kId_Zip). In the list of 6 values, I did not see a format similar to Rar. Maybe you need to set another value CLSID_Format that matches the rar format?
This bad" rar with 7-Zip program unpacks successfully