Results 1 to 5 of 5

Thread: Creating a hook (like moeur's VB control)

  1. #1

    Thread Starter
    Banned
    Join Date
    Aug 2006
    Posts
    77

    Creating a hook (like moeur's VB control)

    I was wondering how to create a hook like moeur's VB control, but to be used in c++. Also, instead of a control, I want a class that I can use like this:
    Code:
    clsHook myHook (Handle)
    Or something like that.

    Is this possible? I have no idea how.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Creating a hook (like moeur's VB control)

    Hook? A Windows Hook or something else?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Banned
    Join Date
    Aug 2006
    Posts
    77

    Re: Creating a hook (like moeur's VB control)

    A hook with SetWindowsHookEx. Moeur's control actually sets 3 hooks, but I don't know which ones except for a Windows Message hook...

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Creating a hook (like moeur's VB control)

    Can you write classes? Then you should be able to do whatever Moeur's control does.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5

    Thread Starter
    Banned
    Join Date
    Aug 2006
    Posts
    77

    Re: Creating a hook (like moeur's VB control)

    Yes, I can...but I don't know how to use DLLs, and I don't know how to translate the VB Control into C++ as a class...

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