?
Solved

Verifying the source code

Posted on 2006-05-20
4
Medium Priority
?
251 Views
Last Modified: 2013-11-20
I have been asigned a project to record and playback the commands of mouse and keyboard. I am providing a link from where i have found the source code and i would be grateful if someone gives a look at it and tells me if it's ok or need some adjustments to be made.
Also, i would be grateful if someone tells me if it's better to develop it on mfc application or just develop the code on vc++ 6.0

Here is the link: http://www.codeproject.com/tools/hookmanager.asp
0
Comment
Question by:afos21
  • 2
  • 2
4 Comments
 
LVL 22

Expert Comment

by:mahesh1402
ID: 16724924
Above project 'DEMO' is developed in MFC but as its using global hooks its having src file used in win32 API call functions.

Above project will be ok for your needs until and unless its giving you desired output.. As for talking about to develop it in MFC or VC (call it as Win32 API) as in above project you need HOOK functions in plain win32 API ( refer HOOKSERVICE.CPP ) and you may invoke them from MFC application as shown.

-MAHESH
0
 

Author Comment

by:afos21
ID: 16734730
Can you explain me in more simple words what i have to do?
0
 

Author Comment

by:afos21
ID: 16734995
Let me rephrase my question. From what i have understood there does not need for an src file to be included in the project. Since the application is based on Journal playback and record functions which are global hooks what changes do i have to make in order for my project to be ok?
0
 
LVL 22

Accepted Solution

by:
mahesh1402 earned 1600 total points
ID: 16740064
>>From what i have understood there does not need for an src file to be included in the project.

I didnt got what do you mean by exactly by this -> 'not need for an src file to be included' ?

As per my understanding you need main src files that have global hook API functions which are 'HookService.H' and 'HookService.CPP'.

You need to include this files in your project in order to invoke this hooks functions from your main project as these are core heart functions.

'HookService.CPP' <== having well defined functions like following in short explanation :

fnStartRecorder() <== Starts Recorder

fnStop_Recorder() <== Stops Recorder

fnStartPlayBack() <== Starts Playback

fnStopPlayBack() <== Stops  Playback

SO ALL YOU NEED IS GRAB 'HookService.H' and 'HookService.CPP' SRC FILES. Include then in your project and invoke above functions as per your needs from your main project. For help have a look at sample 'HookManagerDlg.CPP' how they are invoked from dialog based application.

Hope this helps.

-MAHESH
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Loops Section Overview
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question