add d3d9 project structure

This commit is contained in:
2025-09-03 08:46:25 +02:00
parent 6064e56327
commit 9f276ce207
21 changed files with 1137 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#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
}