CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Posts
    938

    diffrent program manipulatio

    Hello.
    i got this program # 1, wich does some crap.....
    and now i am making program #2, and i need the program #2 to be able to manipulate program #1. By manipulate i mean i want to be able to call dialog reasources to open, button pressed, edit filed filed in /cleared etc....i want to be able to manipulate all the resource of other program from this one.
    how can i do that>?

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940
    Not easily.

    You can pass messages between both apps which are declared by ::RegisterWindowsMessage.

    Or, alternatively, your could turn app #1 into a COM local server (like with Word).

    Why do you want to do this out of interest ? I've been writing code for years and have never had to have one application driving another. It suggests that your design is wrong and needs more thought.

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

  3. #3
    Join Date
    Oct 2003
    Location
    Philadelphia, PA
    Posts
    167
    I agree with Darwen, becuae the real way that you could get app2 to control app1 would be by opening app1 up in a number of different ways, either through the exe or a dll, etc. What are you tyring to do?
    Mike Dershowitz
    [email protected]
    www.lexientcorp.com

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