Skip to content

Commit

Permalink
Fix probably
Browse files Browse the repository at this point in the history
  • Loading branch information
jbzdarkid committed Oct 31, 2018
1 parent 3ef50b7 commit 2ec4950
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Source/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd
HWND hwnd = CreateWindow(WINDOW_CLASS, PRODUCT_NAME, WS_OVERLAPPEDWINDOW,
400, 200, 500, 500, nullptr, nullptr, hInstance, nullptr);

CreateWindow(L"STATIC", L"Version: " VERSION_STR,
WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT,
390, 15, 90, 16, hwnd, NULL, hInstance, NULL);

CreateWindow(L"STATIC", L"Enter a seed:",
WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT,
10, 15, 90, 16, hwnd, NULL, hInstance, NULL);
Expand Down
7 changes: 4 additions & 3 deletions Source/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
#define MINOR 0
#define PATCH 1

#define VERSION MAJOR, MINOR, PATCH, 0
#define VERSION MAJOR, MINOR, PATCH

#define TO_STRING(s) #s
#define VERSION_STR TO_STRING(MAJOR) "." TO_STRING(MINOR) "." TO_STRING(PATCH) ".0"
#define TO_STRING2(s) L#s
#define TO_STRING(s) TO_STRING2(s)
#define VERSION_STR TO_STRING(MAJOR) L"." TO_STRING(MINOR) L"." TO_STRING(PATCH)

#define PRODUCT_NAME L"Witness Randomizer"
#define WINDOW_CLASS L"WitnessRandomizer"

0 comments on commit 2ec4950

Please sign in to comment.