interacting between programs

This is a discussion on interacting between programs within the C Programming forums, part of the General Programming Boards category; Ok, here is my question: I have one program, A which contains a Button, 1. now i want to beable ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    16

    interacting between programs

    Ok, here is my question:

    I have one program, A which contains a Button, 1.

    now i want to beable to use program B to be alerted (or more to detect when) Button 1 is pressed, so that it may copy text out of a text field and display it on the screen.

    i looked on msdn and found the GetMessage function, but it said it only worked if the program (B) which was trying to detect the button click was of the same thread as program a.

    so is there some way to do what ive described above?

    thanks

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,262
    Use the SetWindowsHookEx() function, passing it WH_GETMESSAGE as the hook ID.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 07:32 AM
  2. Interacting with other programs
    By GanonsSpirit in forum C++ Programming
    Replies: 2
    Last Post: 08-05-2007, 06:58 PM
  3. Interacting with other programs with readline
    By Provost in forum C Programming
    Replies: 1
    Last Post: 08-13-2004, 07:24 AM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 05:42 AM
  5. executing c++ programs on the web
    By gulti01 in forum C++ Programming
    Replies: 4
    Last Post: 08-12-2002, 04:12 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21