Код: Выделить всё
if (!RegisterClassEx(&wc)) {
MessageBox(NULL, "Window Registration Failed!", "Error!", MB_ICONEXCLAMATION | MB_OK);
return 0;
}
Код: Выделить всё
if (!RegisterClassEx(&wc)) {
MessageBox(NULL, "Failed to register window class.", "Error", MB_ICONEXCLAMATION | MB_OK);
return 0;
}
Код: Выделить всё
hwnd = CreateWindowEx(
WS_EX_CLIENTEDGE,
g_szClassName,
"The title of my window",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
NULL, NULL, hInstance, NULL);
if (hwnd == NULL) {
MessageBox(NULL, "Failed to create a window.", "Error", MB_ICONEXCLAMATION | MB_OK);
return 0;
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... not-create