User Profile

Collapse

Profile Sidebar

Collapse
AdrianLP
AdrianLP
Last Activity: Mar 7 '08, 06:14 PM
Joined: Mar 3 '08
Location: Kingston, Ontairo, Canada
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • AdrianLP
    replied to Dynamic Link Library & Function Pointers
    in C
    There is one client, and it uses LoadLibrary to get the DLL (which installs a global keyboard hook).

    As long as the client is in focus, the DLL can call a callback function which the client provides it with. If however the client is not in focus, the callback never returns.

    The trouble is, what I understand from the MSDN, the DLL is duplicated many times (once for each running application) to handle the keyboard hooking....
    See more | Go to post

    Leave a comment:


  • AdrianLP
    replied to Dynamic Link Library & Function Pointers
    in C
    ...I hope this isn't off topic as it refers to DLLs. I would not find a Windows-specific programming forum on this site.

    I suspect this question is less about DLLs and more about how to share data between applications using C++ (but perhaps even that is OS-specific) :(
    See more | Go to post

    Leave a comment:


  • AdrianLP
    started a topic Dynamic Link Library & Function Pointers
    in C

    Dynamic Link Library & Function Pointers

    Hello all. I'm writing a Push To Talk radio program. As such I have a DLL that uses SetWindowsHookE x to set a callback function. This works, and is called when keyboard events take place.

    Client programs using this DLL wish to know when a keyboard event takes place (even if said client program is not in the foreground).

    So in my DLL I store a function pointer in a shared data section), and the DLL allows the clients...
    See more | Go to post
    Last edited by AdrianLP; Mar 3 '08, 05:12 PM. Reason: Making the title more accurate
No activity results to display
Show More
Working...