Отчет по практике: Разработка программы контроля изделий и подготовка программной документации
i++;
while(tempFile[i] != ';') {
(*CorrectionList)[n].new_name += tempFile[i++];
}
// (*CorrectionList)[n].new_name[j] = '\0';
n++;
tempchar = tempFile[++i];
}
/* for (j = 0; j < correction_counter; j++) {
MessageBox(NULL, (*CorrectionList)[j].name,"",MB_OK);
MessageBox(NULL, (*CorrectionList)[j].new_name,"",MB_OK);
} */
delete [] tempFile;
fclose(CorrectFilePtr);
return correction_counter;
}
//--------------------------------------------------------------void __fastcall Executing::Execute()
{
CoInitialize(NULL);
char item_type;
DWORD res;
char received_data[255];
unsigned int received_version = 0;
AnsiString mes;
int i, j, index, modules_counter, all_modules, p, param_num;
int error = 0;
if(!FileExists("device_list.xml")){
MessageBox(NULL, "Файл device_list.xml не был найден ", "Ошибка", MB_ICONERROR | MB_OK );
PostMessage(Form1->Handle, WM_CLOSE, 0,0);