Улучшен алгоритм распознавания ошибок
This commit is contained in:
parent
81a1fed232
commit
746149ebdb
31
Compare.c
31
Compare.c
|
|
@ -111,6 +111,37 @@ static BOOL CALLBACK enum_wnd_proc(HWND hwnd, LPARAM lParam) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
if ((wcscmp(classText, L"Edit") == 0) && (compareStruct->number == 12)) {
|
||||
|
||||
#ifdef DEBUG_PRINTF
|
||||
printf("Edit3 found!\n");
|
||||
#endif
|
||||
compareStruct->error = setTextHwnd(hwnd, L"3000", 50);
|
||||
|
||||
if (compareStruct->error) {
|
||||
printf("Error: Edit1\n");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ((wcscmp(classText, L"Edit") == 0) && (compareStruct->number == 14)) {
|
||||
|
||||
#ifdef DEBUG_PRINTF
|
||||
printf("Edit4 found!\n");
|
||||
#endif
|
||||
compareStruct->error = setTextHwnd(hwnd, L"6000", 50);
|
||||
|
||||
if (compareStruct->error) {
|
||||
printf("Error: Edit1\n");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ((wcscmp(classText, L"ComboBox") == 0) && (compareStruct->number == 18)) {
|
||||
#ifdef DEBUG_PRINTF
|
||||
printf("ComboBox1 found!\n");
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
Compare.c
|
||||
Создание кода
|
||||
Создание кода завершено
|
||||
1 of 8 functions (12.5%) were compiled, the rest were copied from previous compilation.
|
||||
0 of 8 functions ( 0.0%) were compiled, the rest were copied from previous compilation.
|
||||
0 functions were new in current compilation
|
||||
0 functions had inline decision re-evaluated but remain unchanged
|
||||
Compare.vcxproj -> C:\VC\Compare\Release\Compare.exe
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue