January 15, 2012

How to compile a C++ source


*This post is in relation with previous post about Keylogger source. 
*This post is only meant for Windows users

[1]. Download Visual C++ 2010 from Microsoft's. If you're confused about what to download, just download the offline installer and install Visual C++ from inside the ISO archive.

[2]. Install and reboot. Now fire up MS VC++ ( Start>Program Files>MS VC++ express>MS VC++ Express)

[3]. Once opened, create a new Empty project and name it as "Keylogger".

[4]. You should be now having a solution explorer on the right side of Visual C++.

[5]. Now click on Keylogger under solution explorer and select "Add a new item" from the popup menu.

[6]. Select a .cpp source file and call it main.

[7] You should be able to get an empty file - main.cpp.

[8] Paste the source inside main.cpp and compile the source under Release mode. You should see the location of compiled executable in output pane of Visual C++. ( see image below, click to enlarge )




[9]. Navigate to output folder to get the compiled executable. (Kelogger.exe)

No comments:

Post a Comment