CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    2

    Replay of a session in Windows Application

    Hi,
    I have a general MFC application containing several menus, views, dialog boxes, wizards etc. I have a requirement where in I have to capture the events right from the beginning of a session capturing the menus invoked, dialogs invoked, buttons clicked, selections made, 3D operations performed etc (which will be recorded in a file called session file) till the application is aborted or exited. The user can open this file during the next session resulting in the playback of the previous session.How to implement the above requirement in a Event based environment like Windows.


  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Replay of a session in Windows Application

    You need to set a hook function to do this.

    You'll find most of the info you need if you check out the following:

    SetWindowsHookEx() using WH_JOURNALRECORD and WH_JOURNALPLAYBACK hooks.

    JournalRecordProc(), JournalPlaybackProc().

    Regards,

    Paul McKenzie


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured