1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
   | void CIConsoleDlg::OnRun() 
{
	// TODO: Add your control notification handler code here
	interfaceDlg->IFederate->waitSynchroPointEnd();
	GetDlgItem(IDC_STATIC_Status)->SetWindowText("Status : Simulation en cours");
	interfaceDlg->tmp=0;
 
	int o =0;
 
	while (interfaceDlg->My_MasterPile)
	{
		interfaceDlg->UpdateObjet(interfaceDlg->My_MasterPile);
 
		GetDlgItem(IDC_STATIC_Status)->SetWindowText("****************");
 
		interfaceDlg->dll_next (&interfaceDlg->My_MasterPile);
	//	updateDataU();
		if(interfaceDlg->My_MasterPile == NULL)
			interfaceDlg->dll_first(&interfaceDlg->My_MasterPile);
 
                //Temporise 5 secondes
		time(&start);
		do {
			time(&finish);
		}while(difftime(finish, start) < 5);
	}
 
	GetDlgItem(IDC_STATIC_Status)->SetWindowText("Status : Simulation en Terminé");
 
 
 
} |