RequestComAddInAutomationService 未在 VSTO Outlook 插件中调用
RequestComAddInAutomationService is not being called in VSTO Outlook addin
我有一个应用程序级别的 Outlook 2010 VSTO 加载项并覆盖了 RequestComAddInAutomationService 函数。在两台开发电脑(一台装有 Outlook 2007,一台装有 Outlook 2010)上,我用 Visual Studio 2012 测试了代码并调用了函数。
Protected Overrides Function RequestComAddInAutomationService() As Object
MsgBox("Request being Made")
If dbShortCutCtrl Is Nothing Then
dbShortCutCtrl = New DBShortCutKeyController
End If
Return dbShortCutCtrl
End Function
问题是当我部署插件时这个函数没有被调用。插件按预期运行,只是没有调用此函数。
VSTO 启动 Outlook 时没有调用此函数是什么原因?
事实证明,Class DBShortCutKeyController 未正确注册 COM,因此未调用此函数。
我有一个应用程序级别的 Outlook 2010 VSTO 加载项并覆盖了 RequestComAddInAutomationService 函数。在两台开发电脑(一台装有 Outlook 2007,一台装有 Outlook 2010)上,我用 Visual Studio 2012 测试了代码并调用了函数。
Protected Overrides Function RequestComAddInAutomationService() As Object
MsgBox("Request being Made")
If dbShortCutCtrl Is Nothing Then
dbShortCutCtrl = New DBShortCutKeyController
End If
Return dbShortCutCtrl
End Function
问题是当我部署插件时这个函数没有被调用。插件按预期运行,只是没有调用此函数。
VSTO 启动 Outlook 时没有调用此函数是什么原因?
事实证明,Class DBShortCutKeyController 未正确注册 COM,因此未调用此函数。