-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG in code (cpp) #133
Labels
Comments
Experienced this as well application works fine to log keystrokes but is not saving to .txt file on windows |
Using MinGW? Localtime_s doesn't work on stuff outside Windows compilers. Try adding this:
Does this help? Commit 4d06f98 should solve with the top issue. I am very rusty with CPP so help would be appreciated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to compile the C++ code (for windows 11) with g++ (mingw) and I get a bug:
PS C:\Users\User\Keylogger\windows> g++ -c klog_main.cpp
klog_main.cpp: In function 'int Save(int)':
klog_main.cpp:132:57: error: 'strcpy_s' was not declared in this scope
strcpy_s(lastwindow, sizeof(lastwindow), window_title);
^
klog_main.cpp:137:23: error: 'localtime_s' was not declared in this scope
localtime_s(&tm, &t);
^
Is this a bug or problem in my pc?
The text was updated successfully, but these errors were encountered: