Click here to Skip to main content
15,886,016 members
Home / Discussions / C#
   

C#

 
GeneralRe: save configuration Pin
J4amieC24-May-05 23:40
J4amieC24-May-05 23:40 
GeneralRe: save configuration Pin
pubududilena25-May-05 1:11
pubududilena25-May-05 1:11 
GeneralRe: save configuration Pin
DavidNohejl25-May-05 1:35
DavidNohejl25-May-05 1:35 
GeneralRe: save configuration Pin
dogdogdog25-May-05 16:57
dogdogdog25-May-05 16:57 
General.NET Executable as COM server Pin
mav.northwind24-May-05 20:59
mav.northwind24-May-05 20:59 
GeneralRe: .NET Executable as COM server Pin
John Fisher25-May-05 7:36
John Fisher25-May-05 7:36 
GeneralRe: .NET Executable as COM server Pin
mav.northwind25-May-05 14:34
mav.northwind25-May-05 14:34 
GeneralRe: .NET Executable as COM server Pin
John Fisher25-May-05 17:19
John Fisher25-May-05 17:19 
I want to be careful about my advice here. I'm not sure whether you can't do what you want with a .NET exe. However, there are some other options, if that truly doesn't work.

1.) Create a COM server in unmanaged code, but it simple passes off the work to the .exe that you have already written. (Not as much work as re-writing, but still a bit of work, I bet. You'll have to figure out how the communication would take place.)

2.) Use one or more of the different ways that you can operate multiple dll instances as if they were one shared instance (or actually share the same dll). One of the ways to handle this is with shared memory mapped files, and named events.

3.) Create an unmanaged COM server exe, and make it actually contain (wrap) your existing application. (Managed C++ would work well for this, I think.)

4.) Don't forget that you may still be able to make the .exe into a COM server.

5.) A re-think of #2 is that you could make a dll COM server, that uses sockets or interprocess communication to communicate with the .exe that you want to really use. That way, you could have multiple instances of the COM object, but they would all be communicating with the single exe, acting as one instance.

6.) Brainstorm a bit more!

John

"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

GeneralInsert Command Pin
Blue_Boy24-May-05 20:41
Blue_Boy24-May-05 20:41 
GeneralRe: Insert Command Pin
pubududilena25-May-05 1:27
pubududilena25-May-05 1:27 
GeneralRe: Insert Command Pin
Uri Lavi25-May-05 8:22
Uri Lavi25-May-05 8:22 
QuestionSerialization Error?? Pin
rufcaw24-May-05 20:27
rufcaw24-May-05 20:27 
AnswerRe: Serialization Error?? Pin
Alomgir Miah25-May-05 3:40
Alomgir Miah25-May-05 3:40 
GeneralBackground image in MDI container Pin
MJay24-May-05 17:59
MJay24-May-05 17:59 
GeneralRe: Background image in MDI container Pin
Rizwan Bashir25-May-05 2:45
Rizwan Bashir25-May-05 2:45 
GeneralRe: Background image in MDI container Pin
Alomgir Miah25-May-05 4:11
Alomgir Miah25-May-05 4:11 
GeneralRe: Background image in MDI container Pin
Skynyrd25-May-05 6:14
Skynyrd25-May-05 6:14 
Generalsearching a collection base Pin
savage_24-May-05 16:28
savage_24-May-05 16:28 
GeneralRe: searching a collection base Pin
Alomgir Miah25-May-05 4:03
Alomgir Miah25-May-05 4:03 
GeneralXML web service Pin
Yulianto.24-May-05 14:57
Yulianto.24-May-05 14:57 
GeneralRe: XML web service Pin
eggie524-May-05 17:49
eggie524-May-05 17:49 
GeneralRe: XML web service Pin
Yulianto.24-May-05 17:52
Yulianto.24-May-05 17:52 
GeneralRe: XML web service Pin
eggie524-May-05 17:56
eggie524-May-05 17:56 
GeneralRe: XML web service Pin
Yulianto.24-May-05 18:01
Yulianto.24-May-05 18:01 
GeneralRe: XML web service Pin
eggie524-May-05 18:09
eggie524-May-05 18:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.