Using chilkat to extract RAR files with progress bar?

Posted by Dodi300 on Stack Overflow See other posts from Stack Overflow or by Dodi300
Published on 2010-04-24T13:25:21Z Indexed on 2010/04/24 13:43 UTC
Read the original article Hit count: 693

Filed under:
|
|
|
|

Hello. Does anyone know how to show the progress of archives extracting, when using chilkat? I already have a progress bar called "progressBar1" on my form. At the moment the whole program freezes when extraction is started. Maybe have another thread? I'm using this code:

Chilkat.Rar rar = new Chilkat.Rar();

bool success;

success = rar.Open("abc123.rar");
if (success != true) {
    MessageBox.Show(rar.LastErrorText);
    return;
}

success = rar.Unrar("c:/temp/unrarDest/");
if (success != true) {
    MessageBox.Show(rar.LastErrorText);
}
else {
    MessageBox.Show("Success.");
}

If anyone has any alternative ways to extract .rar files, it would be great to know.
Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms