Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if(Edit1->Text == "123")
{
MessageBox(0, "123 eingegeben", "", MB_ICONINFORMATION);
}
else
{
MessageBox(0, "FALSCH eingegeben", "", MB_ICONERROR);
}
}
...
string buffer;
GetWindowText(hwndEdit,buffer,sizeof(buffer));
if(buffer=="123")
MessageBox(NULL, "123 Eingegeben", "Info", MB_OK);
else
MessageBox(NULL,"Error", "Error", MB_OK);
...
{
char buf[80];
GetWindowText(hwndEdit, buf, sizeof(buf));
if (strcmp(buf, "123") == 0)
MessageBox(NULL, "123 eingegeben", "info", MB_OK);
else
MessageBox(NULL, "Fehler", "Error", MB_OK);
}