Thanks...is there an equivalent C# implementation? My EXE is a C# program. Loren
r6yamaha
Posts
-
HELP NEEDED - DCOM Server in C#? -
HELP NEEDED - DCOM Server in C#?I have a problem that I have not been able to resolve. I have a C# EXE where I have exposed some interfaces. My problem is that every call to createobject creates a new instance of the application. What I need is one running application from which a client can connect to. Scenario 1: Application is launched from command line. User connects to existing running application using createobject (this does not work...it creates another instance) Scenario 2: Application is not running User run createobject to connect to launch application. App launches (however if another program does a createobject it creates yet another instance). I have not found anything in my searches that have helped. Someone please shed some light on this! Thanks, Loren
-
HELP NEEDED - DCOM Server in C#?I have a problem that I have not been able to resolve. I have a C# exe where I have exposed some interfaces. My problem is that every call to createobject creates a new instance of the application. What I need is one running application from which a client can connect to. Scenario 1: Application is launched from command line. User connects to existing running application using createobject (this does not work...it creates another instance) Scenario 2: Application is not running User run createobject to connect to launch application. App launches (however if another program does a createobject it creates yet another instance). I have not found anything in my searches that have helped. Someone please shed some light on this! Thanks, Loren
-
C# COM application instance issueThanks Brad...I'll do some more investigating. Currently I am using CoRegisterClassObject(ref myGuid, myApp, ComAPI.CLSCTX_LOCAL_SERVER, ComAPI.REGCLS_MULTIPLEUSE, out myReg) which should have worked but is creating a new instance which generates a new windows form. Loren
-
C# COM application instance issueI have an application(C#) that is running on a piece of hardware. I then have a remote user that needs to connect to this application and control it through a COM interface. I have exposed the necessary interfaces and registered it with regasm. My problem is that when the user tries to connect to it with createobject it creates another instance. If they try and use getobject it returns an error saying "runtime error 423. File name or class name not found..." Loren
-
C# COM application instance issueHi All, I am writing a C# application and have exposed COM interfaces. This is all working. My problem is that if I start the application from the command line and then use VB to do a createobject it seems to start another instance of the application. What I want is to get a handle to the already running instance. I have looked around for some time and have not found a solution to this. Can someone please shed some light on this? Thanks, Loren