Added: D3D11 project
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "Utilities.h"
|
||||
|
||||
void ShowError(UINT error)
|
||||
{
|
||||
#if _DEBUG
|
||||
LPCTSTR msg = TEXT("Application quit with an error: ");
|
||||
#if UNICODE
|
||||
std::wstring s = std::wstring(msg) + std::to_wstring(error);
|
||||
msg = s.c_str();
|
||||
#else // UNICODE
|
||||
std::string s = std::string(msg) + std::to_string(error);
|
||||
msg = s.c_str();
|
||||
#endif // UNICODE
|
||||
MessageBox(nullptr, msg, TEXT("Error"), MB_OK);
|
||||
#endif // DEBUG
|
||||
}
|
||||
Reference in New Issue
Block a user