I'm working with the environment, have the following code, is a part of a GUI APP
1 2 3 4 5 6 7 8 9
void APPDlg::WxButton1Click(wxCommandEvent& event)
{
system("start /mim /w cleaner.exe");/ / Call the application cleaner.exe to run minimized and wait for the completion contiunuar with code
WxGauge1->SetValue(50);
system("start /mim /w finishing.exe");
WxGauge1->SetValue(100);
MessageBox(NULL,"Complete Clean, press ok to exit","Info",MB_OK | MB_ICONINFORMATION | MB_TOPMOST);
exit(1);
}
Well, each. exe called by system, it takes about 3 minutes to complete, meanwhile, the application is hung (not responding), and even sets the WxGauge1 to 50, only when the two. exe's close, it sets the value correctly. ..