有谁知道在使用 chilkat 时如何显示档案提取的进度?我的表单上已经有一个名为“progressBar1”的进度条。目前整个程序在提取开始时冻结。也许有另一个线程?我正在使用这段代码:
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.");
}
如果有人有任何其他方法来提取 .rar 文件,很高兴知道。
谢谢。