dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: code for when a program starts my app will start?

  1. #1
    Join Date
    Apr 2004
    Location
    Alaska
    Posts
    87

    code for when a program starts my app will start?

    i am looking for code that my app will start when another program starts? please help thanks

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: code for when a program starts my app will start?

    Y not do like this..

    when ur program starts, start the app. instead of waiting for the app to start u can start it from ur program..

  3. #3
    Join Date
    Apr 2004
    Location
    Alaska
    Posts
    87

    Re: code for when a program starts my app will start?

    Because i want them to click on a program and then mine will start. please help me if you can thanks

  4. #4
    Join Date
    Oct 2001
    Location
    Melbourne, Australia
    Posts
    576

    Re: code for when a program starts my app will start?

    could you create a batch file which does that? instead of running their app, they run your batch file which runs their app then your app?

    i couldn't imagine a way to do it other than that without having a process running constantly checking to see if the app has started or not.

  5. #5
    Join Date
    May 2002
    Location
    Colombo,Sri Lanka
    Posts
    1,110

    Re: code for when a program starts my app will start?

    Are u doing the both developments of exes'

    if so u can use shell command

  6. #6
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: code for when a program starts my app will start?

    Another option is to have your program start hidden, and have it check to see if the other program is running. Once you find the program running, you unhide your program and start regular execution of it.
    Tom Cannaerts
    email: cakkie@cakkie.be.remove.this.bit
    www.tom.be (dutch site)

  7. #7
    Join Date
    Dec 2001
    Posts
    6,332

    Re: code for when a program starts my app will start?

    I suppose I might consider changing the shortcut to the other exe, so that your program starts instead, and launches the other exe. The path to the other file could also be passed as a parameter, so it would not need to already know where it is. There is of course the matter of the icon for the shortcut, but that can be handled as well.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  8. #8
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: code for when a program starts my app will start?

    i agree with Cakie & Wizbang

    This is wat i have done earlier using RUMBA.

    User starts my application and in turn my app starts a Mainframe Session..and my application is hidden from the user..

    then once the user presses F15 on the Keyboard in the mainframe session, my application activates again and gets the data from the mainframe session..

    i think u can do it same way..

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)