-
Anonymous
Почему появляется ошибка «за исключением ')'», ниже приведен код [закрыто]
Сообщение
Anonymous »
Код: Выделить всё
if (this->m_hWnd = CreateWindowEx(
0,
this->m_szClassName.c_str(),
this->m_szAppName.c_str(),
WS_DLGFRAME | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZE,
(GetSystemMetrics(SM_CXSCREEN) - _windowRC.right) / 2,
(GetSystemMetrics(SM_CXSCREEN) - _windowRC.bottom) / 2,
_windowRC.right, _windowRC.bottom, nullptr, nullptr, nullptr, this
);/*';' underlined in red*/ !this->m_hWnd)
throw runtime_error("Error, can't create main window!"s);
Переписываю код YouTube, пытаюсь понять как он работает, ранее писал подобное условие, но такой ошибки не возникало
Подробнее здесь:
https://stackoverflow.com/questions/784 ... s-the-code
1714835358
Anonymous
[code]if (this->m_hWnd = CreateWindowEx(
0,
this->m_szClassName.c_str(),
this->m_szAppName.c_str(),
WS_DLGFRAME | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZE,
(GetSystemMetrics(SM_CXSCREEN) - _windowRC.right) / 2,
(GetSystemMetrics(SM_CXSCREEN) - _windowRC.bottom) / 2,
_windowRC.right, _windowRC.bottom, nullptr, nullptr, nullptr, this
);/*';' underlined in red*/ !this->m_hWnd)
throw runtime_error("Error, can't create main window!"s);
[/code]
Переписываю код YouTube, пытаюсь понять как он работает, ранее писал подобное условие, но такой ошибки не возникало
Подробнее здесь: [url]https://stackoverflow.com/questions/78429352/why-does-the-error-excepted-a-appear-below-is-the-code[/url]