1

I already have an existing code of my application. And i want to create a COM server, which will work inside that process. And this application process will be like a COM server. It is possible to realize using ATL? Maybe someone knows examples of realization?

fryme
  • 281
  • 4
  • 15
  • What does an out of process server in another process actually mean? What are you really trying to do? – doctorlove Aug 05 '13 at 10:19
  • I have an application process which will be like com server. And i have a client process, which will make requests to server and server will send data. – fryme Aug 05 '13 at 10:21
  • It's unclear what you want. You have a process/application and you want COM server to serve external requests? Why? Why inside existing process? Use cases? Why ATL? – Roman R. Aug 05 '13 at 10:26
  • Because this process has some "context", like access to db or other application data, which i need to process client requirements. For example: i have a browser plugin (com client), which must show some data from application process (com server), and server have "context" needed to client. – fryme Aug 05 '13 at 10:31
  • Why ATL? Because clean COM server is deprecated and it is more correct to use ATL. Am i right? – fryme Aug 05 '13 at 10:35
  • 1
    Clean COM is alive and doing well. ATL is a relatively easy way to do COM in C++. You can `RegisterActiveObject` from the process with context, and other processes would obtain a marshaled COM interface via `GetActiveObject` and communicate to your server. Yes, you can do it with ATL. – Roman R. Aug 05 '13 at 10:39
  • 1
    It's very clear what he wants. – zumalifeguard Jun 08 '18 at 20:27

0 Answers0