Re: Out of process COM server accessible by a client embedded in IIS
From: Alvin Bruney [MVP] (vapor)
Date: 04/23/04
- Next message: thomas kern: "datagrid - new record"
- Previous message: Chuck Ritzke: "Re: Postbacks confusing to the user - any suggestions???"
- In reply to: KoolMo: "Out of process COM server accessible by a client embedded in IIS"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Apr 2004 13:53:35 -0500
slow your roll...
>I have tried everything but can't go any further than having the COM client
>accessing not the >existing instance of my application but it loads another
>instance of it which doesn't show any >window (and fights with the existing
>one for resources sharing).
I don't understand this. And I am sure when i understand it, i may have
better advice for you. Right now, a win32 application is not a com server or
an object. If you want to access it thru com, you will have to re-wrap it as
such.
Or, if you can access it thru the console, then just cause the aspx page to
invoke the image on disk. You can use the process namespace in .net. It will
take a startup path which points to the win32 image.
roughly
process = new process("c:\test\test.exe");
process.arguments("arg1 arg2 arg3");
process.Start();
this is exactly equal to firing off the win32 image from the command line.
If it works there, it will work here thru IIS.
see if that helps
-- Regards, Alvin Bruney [ASP.NET MVP http://mvp.support.microsoft.com/default.aspx] Got tidbits? Get it here... http://tinyurl.com/27cok "KoolMo" <ramui123@hotmail.com> wrote in message news:CF9ED14A-D7FB-4D75-87CE-8F6E821696E7@microsoft.com... > Hi All, > maybe I ain't posting to the right newsgroup and if so please point me to > the right one and accept my apologies. > > I desperately need to extend an existing win32 application to have it > behave as an out-of-process local server by exposing the content of some > of its objects via COM interfaces to a IIS Server Side Component or to > JScript calls in an ASP page. > The win32 application has its own life cycle and is started and shutdown > by a user sitting at the server machine (it monitors embedded devices via > serila line) and I need to have IIS (via an ASP page or a dLL component or > whatever) access the application (if running) via LPC and collect data on > its status. > > I have tried everything but can't go any further than having the COM > client accessing not the existing instance of my application but it loads > another instance of it which doesn't show any window (and fights with the > existing one for resources sharing). > > I have successfully managed to obtain the desired behavior when a com > client is a console application (as got it by adapting the chap10 example > in the "inside COM " MSPress book) but can't do anything similar when the > client is either the ASP page (using Server.CreateObject("..")) or a ASP > server side component into a DLL running in the IIS address space. > > Am I missing something? Can anyone please give help or point me in the > right direction (maybe a tutorial)? > TIA. > Mo >
- Next message: thomas kern: "datagrid - new record"
- Previous message: Chuck Ritzke: "Re: Postbacks confusing to the user - any suggestions???"
- In reply to: KoolMo: "Out of process COM server accessible by a client embedded in IIS"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|