0

I am writing a c# application which references a separate dll which contains all the automation features i am trying to implement such as Application Object Model, doing all this by using delegates and events.

What i want to be able todo is to reference my dll containing the application object model in a different process and for it to automatically launch my application, like MS-Word does when you call its application.

Example:

Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();

Word object model loads in the WinWord.exe running its own process how can i achieve this as well.

Thanks in advance

Alan
  • 1

2 Answers2

0

What you need is an out-of-process COM automation server.

This question has a number of replies that should give you some ideas.

Community
  • 1
  • 1
Stu Mackellar
  • 11,510
  • 1
  • 38
  • 59
0

The way that Word does it is that it's an out of process executable COM Server. You can write your own out of process COM servers.

Here's some information about COM Servers: http://en.wikipedia.org/wiki/OLE_Automation#Object_models_for_specific_applications

And here's a question discussing how to do this in C#: Creating a COM Automation Server in C#

Community
  • 1
  • 1
Hans Olsson
  • 54,199
  • 15
  • 94
  • 116