Results 1 to 6 of 6

Thread: passing parameters between apps

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Location
    Bucks
    Posts
    12

    Post

    I can check if a previous instance of my app is running with App.PrevInstance but how do I pass command line parameters from the second instance to the first without using a timer event and the registry?

    Any help would be much apreciated.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    Post

    You could just write them to a file and access the file on open or close.
    Wayne

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    Or DDE. Or SendMessage with a custom message.

    In other words, there are three ways. Pick one

    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: [email protected]
    ICQ: 19552879



  4. #4

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Location
    Bucks
    Posts
    12

    Post

    Thanks, but it sounds even slower than the registry way and I would still need a timer event to check the file. I want a way with no overheads.

    I need some way to call a procedure in the first instance or something. Any ideas??

  5. #5
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    Calling a procedure in the first instance can be done with SendMessage with a custom message. Want an example?

    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: [email protected]
    ICQ: 19552879



  6. #6

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Location
    Bucks
    Posts
    12

    Post

    Yes Please,

    I have used an API sendmessage thing with Winamp but I have no idea how to code my app so it accepts them. An example would be a great help.

    Ta.

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