Day 1 complete.

This commit is contained in:
2023-09-08 18:54:16 -04:00
parent 4949c36097
commit 3ace9435bf
6 changed files with 22 additions and 6 deletions

View File

@ -7,5 +7,7 @@ int CALLBACK WinMain(
int nShowCmd
)
{
MessageBox( 0, L"First message!", L"Handmade Hero", MB_OK | MB_ICONINFORMATION );
return 0;
}

View File

@ -3,4 +3,10 @@ Alternative header for windows.h
*/
#include "windows/windows_base.h"
#include "windows/window.h"
#ifdef UNICODE
constexpr auto MessageBox = MessageBoxW;
#else
constexpr auto MessageBox = MessageBoxA;
#endif // !UNICODE