如何在没有类成员的情况下导入COM DLL? [英] How to import COM DLL without class members?

查看:165
本文介绍了如何在没有类成员的情况下导入COM DLL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在导入要隔离的COM DLL时遇到问题.

I'm having problem when importing a COM DLL, that I want to isolate.

我收到以下错误:

错误MSB3303:无法解析COM引用[SOME_GUID] 1.0版.类型库导入程序在类型验证期间遇到错误.尝试在没有班级成员的情况下导入.

在没有类成员的情况下,如何从Visual Studio导入?

How can I, from Visual Studio, import without the class members?

我知道有一个可以切换到tlbimp(/noclassmembers)的开关,但是我看不到如何在Visual Studio中使用它.

I know there is a switch available to tlbimp (/noclassmembers), but I don't see how that can be used from Visual Studio.

我不能使用tlbimp生成互操作程序集,并将其添加为引用,因为然后我将失去隔离COM DLL的选项.

I can't use tlbimp to generate the interop assembly, and add it as a reference, cause I will then loose the option to isolate the COM DLL.

推荐答案

您好,DanielAdolfsson,

Hi DanielAdolfsson,

此论坛讨论的是Visual Studio WPF/SL设计器,Visual Studio指导自动化工具包,开发人员文档和帮助系统以及Visual Studio编辑器.

This forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

您的问题可能与C#开发有关,我将该线程移至相应的论坛以寻求专业答案.

Your issue may be related to C# development I will move this thread to corresponding forum for a professional answer.

此致,

奥斯卡


这篇关于如何在没有类成员的情况下导入COM DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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