Added: D3D9 project and window creation

This commit is contained in:
2026-09-29 21:35:40 +02:00
parent ce7dd786ea
commit 1b6e8938e5
21 changed files with 1200 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
}