R
Raymond
Hi,
I tried to load outlook 2003 into a separate domain
However, when I create an instance from the new domain, "app" always return
null.
AppDomain domain =
AppDomain.CreateDomain("Outlook");System.Reflection.Assembly myassembly =
domain.Load("Microsoft.Office.Interop.Outlook, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c");
Microsoft.Office.Interop.Outlook.Application app =
(Microsoft.Office.Interop.Outlook.Application)
myassembly.CreateInstance("Outlook.Application");
Outlook.NameSpace nameSpace = app.GetNamespace("MAPI");
Does anyone correct me what else I miss in the above coding?
Thanks,
Raymond
I tried to load outlook 2003 into a separate domain
However, when I create an instance from the new domain, "app" always return
null.
AppDomain domain =
AppDomain.CreateDomain("Outlook");System.Reflection.Assembly myassembly =
domain.Load("Microsoft.Office.Interop.Outlook, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c");
Microsoft.Office.Interop.Outlook.Application app =
(Microsoft.Office.Interop.Outlook.Application)
myassembly.CreateInstance("Outlook.Application");
Outlook.NameSpace nameSpace = app.GetNamespace("MAPI");
Does anyone correct me what else I miss in the above coding?
Thanks,
Raymond