#include "stdafx.h" #include "BombermanGame.h" int wmain(int argc, wchar_t* argv[]) { UNREFERENCED_PARAMETER(argc); UNREFERENCED_PARAMETER(argv); #pragma warning(push) #pragma warning(disable: 6387) wWinMain(GetModuleHandle(nullptr), nullptr, nullptr, SW_SHOW); #pragma warning(pop) } #pragma warning(push) #pragma warning(disable: 28251 6387) int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR /*pCmdLine*/, int /*nCmdShow*/) { //notify user if heap is corrupt //HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL,0); // Enable run-time memory leak check for debug builds. /* #if defined(DEBUG) | defined(_DEBUG) _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); typedef HRESULT(__stdcall *fPtr)(const IID&, void**); HMODULE hDll = LoadLibrary("dxgidebug.dll"); fPtr DXGIGetDebugInterface = (fPtr)GetProcAddress(hDll, "DXGIGetDebugInterface"); IDXGIDebug* pDXGIDebug{}; DXGIGetDebugInterface(__uuidof(IDXGIDebug), (void**)&pDXGIDebug); //_CrtSetBreakAlloc(10725); #endif */ std::srand(static_cast(std::time(0))); const auto pGame = new BombermanGame(); auto result = pGame->Run(hInstance); UNREFERENCED_PARAMETER(result); delete pGame; return 0; } #pragma warning(pop)