Re: Pass parameters to the application which is already running
From: Amit Dandavate (AmitDandavate_at_discussions.microsoft.com)
Date: 10/05/04
- Next message: Tom Esh: "Re: VB6 Restore Minimized Window - External Application"
- Previous message: Andrew Dunn: "Re: VB6 Restore Minimized Window - External Application"
- In reply to: Tom Shelton: "Re: Pass parameters to the application which is already running"
- Next in thread: Vlad Kozin: "Re: Pass parameters to the application which is already running"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 5 Oct 2004 04:15:06 -0700
Can you please send me the example for this.
Regards,
Amit Dandavate.
"Tom Shelton" wrote:
> On 2004-10-05, Amit Dandavate <AmitDandavate@discussions.microsoft.com> wrote:
> > Hi,
> >
> > I have a file associated to my application. When the user double clicks the
> > file in the explorer it gets opened in my application. Now my application is
> > SDI.
> > Again when the user double clicks the another file in the explorer I want
> > this file to be opened in the original instance and not in the new instance.
> > The code to have single instance of the application is with me. But I am not
> > able to pass command parameters to the previous instance.
> >
> > So If I can pass the parameters to the application which is already running
> > that will be helpful.
> >
> >
> > Thanks in Adv.
> >
> > Regards,
> >
>
> One way to do this is to use WM_COPYDATA to send the command line to the
> already running instance of the application.
>
> --
> Tom Shelton [MVP]
>
- Next message: Tom Esh: "Re: VB6 Restore Minimized Window - External Application"
- Previous message: Andrew Dunn: "Re: VB6 Restore Minimized Window - External Application"
- In reply to: Tom Shelton: "Re: Pass parameters to the application which is already running"
- Next in thread: Vlad Kozin: "Re: Pass parameters to the application which is already running"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|