Outlook赎回-在没有regsvr32 DLL的情况下使用RedemptionLoader [英] Outlook Redemption - using RedemptionLoader without regsvr32 the DLL

查看:197
本文介绍了Outlook赎回-在没有regsvr32 DLL的情况下使用RedemptionLoader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用邮件功能而不注册COM dll(regsvr32). 我遵循了以下信息:

I want to use the mail functions without registering the COM dll (regsvr32). I followed the informations from:

http://www.dimastr.com/redemption/security.htm#redemptionloader

所以我用

private Redemption.SafeMailItem safeMail = Redemption.RedemptionLoader.new_SafeMailItem();

其中显示了Eval-Popup.都好. 但是当我将Outlook邮件项目分配给对象

which shows the Eval-Popup. All good. But when i assign the outlook mail item to the object

 safeMail.Item = mail; // of type Microsoft.Office.Interop.Outlook.MailItem

然后出现此异常:

无法将类型为'System .__ ComObject'的COM对象转换为接口 键入"Redemption.ISafeMailItem".该操作失败,因为 IID接口的COM组件上的QueryInterface调用 "{0A95BE2D-1543-46BE-AD6D-18653034BF87}"由于以下原因而失败 错误:不支持这样的接口(HRESULT的异常:0x80004002 (E_NOINTERFACE).

Unable to cast COM object of type 'System.__ComObject' to interface type 'Redemption.ISafeMailItem'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{0A95BE2D-1543-46BE-AD6D-18653034BF87}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

在regsvr32中注册dll后,它可以工作吗?但是我不要.

After registering the dll with regsvr32 it works? But i dont want that.

我在做什么错了?

  • 我尝试在开发机上注册COM
  • 删除COM并使用 Interop.Redemption.dll

在不注册COM的情况下使用Loader的预期方式是什么?

What it the intended way of using the Loader without registering the COM?

推荐答案

跳过了在主线程中初始化加载程序并在另一个线程中调用方法的陷阱.

Stepped over the trap of initializing the loader in the main Thread and calling methods in another...

请参见兑换+ Clickonce = :-(

这篇关于Outlook赎回-在没有regsvr32 DLL的情况下使用RedemptionLoader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆