Files
hwr2024_b/GDP/D3D9/Utilities.cpp
T
2026-11-09 15:49:51 +01:00

17 lines
400 B
C++

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