Re: Need Singelton Process

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ajay Kalra (ajaykalra_at_yahoo.com)
Date: 08/12/04


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
>
>
>


Relevant Pages

  • Re: Export data to letters
    ... let Word be a really nice desktop app, and use other things for client / ... server and web apps. ... In theory, I can imaging you could create Word docs using automation, ...
    (microsoft.public.inetserver.asp.general)
  • Re: On why debugging OpenSSH can be so hard
    ... Since nobody seems to be aware of how debugging works on OpenSSH, let me just tell you that there is a client process and a server process and they separately have debug modes. ... The client debug mode could merely say "Login failed. ...
    (SSH)
  • Need Singelton Process
    ... I created an MDC dialog based application using MFC wizard with Automation ... The invocation of the Server from TWO client process is invoking TWO ... I want only once process running which serves all client requests. ...
    (microsoft.public.vc.mfc)
  • Re: Type Not Found
    ... In the client process or on the server? ... The assembly does not appear to be strongly named, and so can't appear in the Global Assembly Cache, so how is the hosting servier going to locate it? ...
    (microsoft.public.dotnet.framework.remoting)
  • RE: Transfer MailMerge process to client side
    ... Server side automation of the Office products is not recommended and hence ... Please refer the following knowledge base ... You may choose to automate Word at client side using JavaScript or VBScript. ...
    (microsoft.public.dotnet.framework.interop)