There are 2 ways.
1. DDE
2. Create a OS Event/Mutex/Semaphore and some Shared memory, when the second
version starts, get the file name, fire the event and place the file name in
the shared memory for the first instance of your application to read. Your
main app then reads then responds to the event and reads the shared memory.

Myles.
 

-----Original Message-----
From: vss [mailto:[EMAIL PROTECTED]]
Sent: Monday, 20 August 2001 3:33 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: File Association


Hi all. I have made it so an application that can open files that I have 
assoiated to it via explorer etc. The problem IS, that if I open one, 
thats fine, BUT if I open another, it opens another instance of my app. 
when I really only want it to open the next file in the same instance of 
the currently open app......if you get what I mean.

Anyone know how I can fix this ?

Cheers, Jeremy COulter


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to