GiacomoLaw / Keylogger

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

cant compile #42

Closed 533834 closed 6 years ago

533834 commented 6 years ago

Hello i'm getting this error... can any one help me out? 1>c:\users\alina\source\repos\project8\source.cpp(36): error C2664: 'int Save(int,char )': cannot convert argument 2 from 'const char [16]' to 'char ' 1>c:\users\alina\source\repos\project8\source.cpp(36): note: Conversion from string literal loses const qualifier (see /Zc:strictStrings) in this line // save to file Save(kbdStruct.vkCode, "System32Log.txt");

NtRaiseHardError commented 6 years ago

Try either of the following two options:

  1. Disable the strict strings options in your project properties under C/C++ -> Command Line, then add /Zc:strictStrings- under Additional Options,
  2. Redefine the Save function to: int Save(int key_stroke, const char *file)

Please refer to -Zc:strictStrings for more information about your error.

GiacomoLaw commented 6 years ago

Seeing as you didn't reply I'm going to assume your issue was solved, and close this. :smile: