Files
hwr2023_b/GDP/D3D11/Utilities.cpp
T
2025-11-19 09:43:09 +01:00

15 lines
355 B
C++

#include "Utilities.h"
void ShowError(UINT error)
{
#if _DEBUG
LPCTSTR msg = TEXT("Application quit with an error: ");
#if UNICODE
msg = (std::wstring(msg) + std::to_wstring(error)).c_str();
#else // UNICODE
msg = (std::string(msg) + std::to_string(error)).c_str();
#endif // UNICODE
MessageBox(nullptr, msg, TEXT("Error"), MB_OK);
#endif // DEBUG
}