Skip to content

Commit

Permalink
Fix Win32 project
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Jun 22, 2024
1 parent a66d168 commit 15f94d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/xtdc/src/win32_gui_project.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ namespace xtdc_command {
"#include <Windows.h>",
"",
"struct window {",
" HWND handle = NULL;",
" WNDPROC defWndProc = NULL;",
" HWND handle;",
" WNDPROC defWndProc;",
"};",
"typedef struct window window;",
"",
"window window1;",
"window window1 = {NULL, NULL};",
"",
"LRESULT CALLBACK Window1WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) {",
" switch (message) {",
Expand All @@ -76,7 +76,7 @@ namespace xtdc_command {
" return CallWindowProc(window1.defWndProc, hwnd, message, wParam, lParam);",
"}",
"",
"int wmain(int argc, wchar* argv[]) {",
"int wmain(int argc, wchar_t* argv[]) {",
" window1.handle = CreateWindowEx(0, WC_DIALOG, L\"Window1\", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 800, 450, NULL, NULL, NULL, NULL);",
" window1.defWndProc = (WNDPROC)SetWindowLongPtr(window1.handle, GWLP_WNDPROC, (LONG_PTR)Window1WndProc);",
"",
Expand Down

0 comments on commit 15f94d3

Please sign in to comment.