Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Nov 3, 2024
1 parent 951bc7a commit 33c7101
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
shell: msys2 {0}
run: |
g++ -Ofast -Wall -shared -std=c++20 -static -o api.dll api.cpp -lgdi32
g++ -Ofast -Wall -shared -std=c++20 -static -o gui.dll gui.cpp -lgdi32
g++ -Ofast -Wall -shared -std=c++20 -static -o gui.dll gui.cpp -lgdi32 -lcomctl32
ls -l api.dll
ls -l gui.dll
Expand Down
5 changes: 4 additions & 1 deletion gui.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#include <vector>
#include <string>
#include <windows.h>
#include <commctrl.h>

#include "api.cpp"

extern "C" {
__declspec(dllexport) void create_window();
}

InitCommonControls();

void tooltip(HWND hwnd, HWND control, const char* text) {
HWND htooltip = CreateWindowEx(
0, TOOLTIPS_CLASS, NULL,
Expand Down Expand Up @@ -209,7 +212,7 @@ class Application {
SetFocus(NULL);
return 0;
}
if ((wParam < "1" || wParam > "9") && wParam != VK_BACK) {
if ((wParam < '1' || wParam > '9') && wParam != VK_BACK) {
return 0; // Ignore non-numeric or zero input
}
}
Expand Down

0 comments on commit 33c7101

Please sign in to comment.