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.dl
l 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?