Re: Need Singelton Process
From: Ajay Kalra (ajaykalra_at_yahoo.com)
Date: 08/12/04
- Next message: Ajay Kalra: "Re: how Can I put a Toolbar in a Dialog Based"
- Previous message: Ajay Kalra: "Re: Is it Possible to call MFC dll from Win32 DLL?"
- In reply to: Priyendu S: "Need Singelton Process"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 11 Aug 2004 22:18:05 -0400
Its been a while since I did this but I think you have to register your app
in ROT and then look at it each time before you create another instance.
There may be other easier ways especially if you are using ATL.
--
Ajay Kalra [MVP - VC++]
ajaykalra@yahoo.com
"Priyendu S" <noid@private.com> wrote in message
news:cfcsgt$2tk$1@news.mch.sbs.de...
> Hello,
>
> I need to make a Standalone Automation server (which has a UI ) that
serves
> all clients with the same UI.
> I created an MDC dialog based application using MFC wizard with Automation
> checkbox checked.
> The invocation of the Server from TWO client process is invoking TWO
> instances of server.
> I want only once process running which serves all client requests.
>
> The code i am using to invpoke my Server is given below:
>
> COleDispatchDriver disp; // Declared as Global Var
> // After all the intializations-----
> // This is inside a class
> disp.CreateDispatch("MyApplication.Application", e))
>
> I am a newbie in OLE Automation. Kindly advice.
>
> Regards
> Priyendu S
>
>
>
- Next message: Ajay Kalra: "Re: how Can I put a Toolbar in a Dialog Based"
- Previous message: Ajay Kalra: "Re: Is it Possible to call MFC dll from Win32 DLL?"
- In reply to: Priyendu S: "Need Singelton Process"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|