A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to load Outlook into a separate appDomain?



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old July 22nd 08, 02:00 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to load Outlook into a separate appDomain?

I see you got a good answer from Geoff Darst in the VSTO forum at
http://forums.microsoft.com/MSDN/Sho...45043&SiteID=1
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Raymond" wrote:

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.Reflectio n.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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Separate Outlook installations or identities? Trent SC Outlook - General Queries 5 May 28th 08 12:36 AM
two versions of outlook on two separate computers Kiki Outlook - Installation 2 November 1st 07 04:18 PM
OUTLOOK SYNCHRONIZE - TWO SEPARATE PC'S S RAMESH Outlook - Calandaring 3 May 23rd 06 03:28 PM
How do I combine two separate calendars into one in Outlook? brianj796 Outlook - Calandaring 1 March 31st 06 07:32 PM
How do I separate multiple Outlook users? Ange Smith Outlook - Installation 1 February 22nd 06 12:00 PM


All times are GMT +1. The time now is 03:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.