Ok, a question to the gurus out there, I'll make a short description of what I want to do, let's see if I'm on the right way or not...
I'm relatively new on COM, I understand how the layer works and the benefits as well as the general development concepts. My scenario follows: I've an existing application that runs as a Windows service, the application is block built, that means I already have a C++ SDK to interact with the core DLLs, I'm also looking about integrating Python, that's pretty simple, I've just to write a proxy Layer on my classes/functions, that doesn't scare me. I was thinking about the idea of giving COM and Automation support on the server itself, and here comes the doubts.
Is there a way to embed a COM/DCOM server inside my existing applicaiton ? Out-of-process and distributed servers have some kind of on-call activation managed by the SCM inside windows, what I really like to do, if that's possible, to have several methods available generally that may fail if the server is not running (or even run it on demand), but include the com logic directly inside my server. I'm almost sure I can write a standalone proxy component that interact with a local named pipe (or socket) to my main service, but this may cause me a big headache implementing my custom marshalling/unmarshalling on the server itself.
I hope what I asked is clear, and if possible, could some one point me to a working example/documentation ?