طيب...
هذه الأوامر المستعلمة في المثال المرفق...
هذه الأوامر المستعلمة في المثال المرفق...
unsigned char String1[20] = {0};
char String2[] = "at4re";
GetDlgItemTextA(hwnd, IDC_NAME, (LPSTR)String1, 21);
int Ivar = lstrcmpA((LPCSTR)String1, (LPCSTR)String2);
if (Ivar == -1)
SendDlgItemMessageA(hwnd, IDC_SERIAL, LB_ADDSTRING, 0, LPARAM("Your password is LESS than real password..."));
if (Ivar == 1)
SendDlgItemMessageA(hwnd, IDC_SERIAL, LB_ADDSTRING, 0, LPARAM("Your password is GREATER than real password..."));
if (Ivar == 0)
SendDlgItemMessageA(hwnd, IDC_SERIAL, LB_ADDSTRING, 0, LPARAM(" **CONGRATULATION** [Your password is EQUAL to real password]"));