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.
Printable View
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.
You could just write them to a file and access the file on open or close.
Wayne
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
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??
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
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.