PDA

Click to See Complete Forum and Search --> : passing parameters between apps


DPearce
Nov 1st, 1999, 11:02 AM
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.

HeSaidJoe
Nov 1st, 1999, 11:23 AM
You could just write them to a file and access the file on open or close.
Wayne

Yonatan
Nov 1st, 1999, 11:28 AM
Or DDE. Or SendMessage with a custom message.

In other words, there are three ways. Pick one :)

------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)

DPearce
Nov 1st, 1999, 11:28 AM
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??

Yonatan
Nov 1st, 1999, 11:36 AM
Calling a procedure in the first instance can be done with SendMessage with a custom message. Want an example?

------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)

DPearce
Nov 1st, 1999, 03:18 PM
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.