使用VB.NET调用Microsoft.Office.Interop.UccApi.Dll [英] Using VB.NET to call Microsoft.Office.Interop.UccApi.Dll

查看:239
本文介绍了使用VB.NET调用Microsoft.Office.Interop.UccApi.Dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VB.NET可用于开发使用Microsoft.Office.Interop.UccApi.Dll的应用程序吗?

如果是这样,您如何解决应用程序的需求? UCCAPI DLL的清单文件?

如果没有,是否有方法在其周围编写C#DLL包装器?

解决方案

< blockquote>我想我不明白为什么你认为你不能使用VB.NET项目/应用程序的应用程序清单。据我所知,使用带有VB.NET应用程序的清单没有问题。

如果您正在尝试编写另一个应用程序(如Outlook)中托管的VB.NET模块插件)然后您不能使用清单加载UCCAPI DLL,但该问题与您的应用程序是用VB.NET还是C#编写无关。

在这种情况下,您需要使用激活上下文API来控制插件代码加载的内容。参考此处:

http://msdn.microsoft。 COM / EN-US /库/ aa374166(VS.85)的.aspx




Can VB.NET be used to develop an application that uses the Microsoft.Office.Interop.UccApi.Dll?

If so, how do you get around the need for the application manifest file for the UCCAPI dll?

If not, is there a method to write a C# DLL wrapper around it?

解决方案

I guess I don't understand why you think you can't use an application manifest for a VB.NET project/app.  As far as I can tell there is no problem with using a manifest with a VB.NET app.

If you are trying to write a VB.NET module that is hosted in another application (like an Outlook plug-in) then you can't use a manifest to load the UCCAPI DLL, but that issue is independent of whether your app is written in VB.NET or C#.

In that case, you need to use the Activation Context APIs to control what gets loaded by your plug-in code.  Reference here:

http://msdn.microsoft.com/en-us/library/aa374166(VS.85).aspx




这篇关于使用VB.NET调用Microsoft.Office.Interop.UccApi.Dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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