Skip to content
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

question regarding installing on windows #80

Closed
gartha1 opened this issue Jun 6, 2019 · 7 comments
Closed

question regarding installing on windows #80

gartha1 opened this issue Jun 6, 2019 · 7 comments
Labels
question windows Issue with Windows version

Comments

@gartha1
Copy link

gartha1 commented Jun 6, 2019

Hi

I don't really understand how you suggest installing this on Windows

I don't see an EXE

I look here

https://github.com/GiacomoLaw/Keylogger/tree/master/windows
and
https://github.com/GiacomoLaw/Keylogger

and it doesn't say much about how to make the EXE

It says "Simply compile into an .exe, and then run. Visual Studio is good for this. "

I do have a gcc.exe and g++.exe from cygwin

user@samsung350 /cygdrive/c/crp/keyloggerblah/windows
$ g++ klog_main.cpp
klog_main.cpp:1:10: fatal error: Windows.h: No such file or directory
#include <Windows.h>
^~~~~~~~~~~
compilation terminated.

user@samsung350 /cygdrive/c/crp/keyloggerblah/windows
$

I have Visual Studio 2015

But I don't know much about C++ in VS 2015

If I try to open the file in VS 2015 by file..open project/soluton, it says it's not a project or solution

If I open with file..open file, then i can open the CPP filie, but then if I go to 'build' it has no compile or build option, only "run code analysis on solution"

How am I meant to make the EXE?

@GiacomoLaw
Copy link
Owner

Try changing it to windows.h instead. Sorry for the late reply!

@GiacomoLaw GiacomoLaw added question windows Issue with Windows version labels Jun 15, 2019
@Petefr1
Copy link

Petefr1 commented Apr 25, 2020

Hey, compiling it with Code::Blocks and it apparently says error in line 142

||=== Build file: "no target" in "no project" (compiler: unknown) ===|
D:\Pierre etc ....... |142|error: 'MAPVK_VK_TO_CHAR' was not declared in this scope|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

@ItsK1tty
Copy link

It feels like you have a very, very old windows.h. what's your g++/gcc version?

@Bourbon8464
Copy link

I am also struggling to install this correctly, is there a possibility for you to make a tutorial or give a more detailed explanation.

Kind Regards

@mydarkthawts
Copy link
Contributor

I am also struggling to install this correctly, is there a possibility for you to make a tutorial or give a more detailed explanation.

Kind Regards

  1. Download Microsoft Visual Studio 2022 Community Edition from this page.
  2. Run the downloaded installer.
  3. Choose the options on the installer selection step for desktop c++ development. (I select everything and install it all because I dabble in a little of everything)
  4. Follow screen recording below.
Screencast.from.2024-02-03.18-19-36.webm

@GiacomoLaw
Copy link
Owner

Thanks very much @mydarkthawts!

@mydarkthawts
Copy link
Contributor

mydarkthawts commented Feb 5, 2024

Thanks very much @mydarkthawts!

Always @GiacomoLaw! I don't mind helping clean up these issues as I see them. You have very clean to the point code and it deserves attention. A great PoC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question windows Issue with Windows version
Projects
None yet
Development

No branches or pull requests

6 participants