GiacomoLaw / Keylogger

A simple keylogger for Windows, Linux and Mac
https://simple-keylogger.github.io/
MIT License
2.06k stars 617 forks source link

I can't compile on windows, i have this, any help to understand pls #129

Closed Syrfa closed 1 year ago

Syrfa commented 1 year ago

image

dXu23 commented 1 year ago

The error seems pretty straightforward actually. LPWSTR is a const pointer to a wchar_t, which stands for wide character. LPCSTR is a const pointer to character. The most obvious and naive fix is to go to the code block at klog_main.cpp at line 56 and change the type of a to LPCSTR. Edit: Actually it might be on line 92 of klog_main.cpp in the windows folder.

GiacomoLaw commented 1 year ago

The error seems pretty straightforward actually. LPWSTR is a const pointer to a wchar_t, which stands for wide character. LPCSTR is a const pointer to character. The most obvious and naive fix is to go to the code block at klog_main.cpp at line 56 and change the type of a to LPCSTR. Edit: Actually it might be on line 92 of klog_main.cpp in the windows folder.

Cheers