>I would like to create a singleton out of proc server using C# to be called
>by a legacy COM client. I don't want to use NT service. Has anybody done
>this. All the example I've seen are all either InProc or NT service.
You can't do out-of-proc / EXE servers in C# or VB.NET.
Marc
================================================================
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
Ole Nielsby - 03 Nov 2005 10:32 GMT
> You can't do out-of-proc / EXE servers in C# or VB.NET.
Doing an out-of-proc server is basically a matter of writing an
EXE that calls the Win32 CoRegisterClassObject with an
IClassFactory. This must surely be possible even if there is
no wizard.
If all else fails, maybe you could create a C# in-proc server
using an interim ClsID/ProgID and a tiny Win32 out-of-proc
server that simply calls
CoRegisterClassObject(CoGetClassObject(InterimCLSID))
HTH/ON
The prefered way to create COM out-of-proc servers using any of the managed
languages is by registering your components with the COM+ catalog as a
server type application.
Willy.
>I would like to create a singleton out of proc server using C# to be called
> by a legacy COM client. I don't want to use NT service. Has anybody done
> this. All the example I've seen are all either InProc or NT service.