Home:ALL Converter>Outlook add-in using redemption in 32 and 64 bit Outlook version

Outlook add-in using redemption in 32 and 64 bit Outlook version

Ask Time:2013-08-29T03:15:03         Author:user1971706

Json Formatter

My Outlook add-in is compiled with platform target as "Any CPU" and it works fine in 32 and 64 bit Outlook now.

I want to use redemption.dll in my add-in to extent some functionality. I saw there are two versions of DLLs in the downloaded redemption package (redemption.dll and redemption64.dll) I want to use similar code below to use the dll in my add-in

Type t = Type.GetTypeFromProgID("MyDll.MyMailItem");
SafeMailItem sItem = (SafeMailItem) Activator.CreateInstance(t);

In this case which dll I refer to my project? redemption.dll OR redemption64.dll ?

How my project loads correct DLL in 32 bit Office and 64 bit Office?

Author:user1971706,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/18496379/outlook-add-in-using-redemption-in-32-and-64-bit-outlook-version
yy