QStringList argList; //...........completer les arguments ......... argList << pathExch ; argList << "Record" ; argList << idInterv ; argList << G_pCApp->m_Droits ; if (m_Contacts_Run==FALSE) {m_Contacts_Run = TRUE; QProcess proc; proc.start(pathExe, argList); SLEEP(1); G_pCApp->processEvents (); while (proc.state()==QProcess::Running ) { QApplication::processEvents ( QEventLoop::WaitForMore ); } m_Contacts_Run = FALSE; //......... recuperer fichier d'echange ............. // genere par l'executable QString ret; CGestIni::Param_UpdateFromDisk(pathExch, ret); //............... analyse du retour ................ QString id, specialite,nom, prenom; int deb = 0; int end = ret.find('|'); id = ret.mid(deb, end-deb); deb = end + 1; end = ret.find('|', deb); nom = ret.mid(deb, end-deb); deb = end + 1; end = ret.find('|', deb); prenom = ret.mid(deb, end-deb); deb = end + 1; specialite = ret.mid(deb); }