Verifying the source code

Posted on 2006-05-20
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:
Question by:afos21
    LVL 22

    Expert Comment

    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.


    Author Comment

    Can you explain me in more simple words what i have to do?

    Author Comment

    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?
    LVL 22

    Accepted Solution

    >>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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    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.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now