是什么原因导致"类型库导入无法转换签名成员"警告? [英] What causes "The type library importer could not convert the signature for the member" warnings?

查看:343
本文介绍了是什么原因导致"类型库导入无法转换签名成员"警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我偶尔会在我的web应用程序的一些警告:

I occasionally get a number of warnings in my web app:

Warning 5   The type library importer could not convert the signature for the member 'ADS_OCTET_STRING.lpValue'.    
Warning 6   The type library importer could not convert the signature for the member '__MIDL___MIDL_itf_ads_0000_0002.lpValue'. 
Warning 7   The type library importer could not convert the signature for the member 'ADS_NT_SECURITY_DESCRIPTOR.lpValue'.  
Warning 8   The type library importer could not convert the signature for the member '__MIDL___MIDL_itf_ads_0000_0003.lpValue'. 
---- snip ----
Warning 33  The type library importer could not convert the signature for the member 'tagARRAYDESC.rgbounds'.   
Warning 34  At least one of the arguments for 'ITypeComp.RemoteBind' cannot be marshaled by the runtime marshaler.  Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.

有似乎没有任何东西其实是错误的,并重新启动Visual Studio中似乎让他们离开。是什么原因导致这一点,有没有什么办法解决它短期重启的?

There doesn't seem to be anything actually wrong, and restarting Visual Studio seems to make them go away. What causes this, and is there any way to fix it short of restarting?

推荐答案

创建自己的Interop程序是这样的(ActiveDs为例):

Create your own interop assembly like this (ActiveDs for example):

TLBIMP activeds.tlb /out:c:\\temp\\Interop.ActiveDs.dll /静音

tlbimp activeds.tlb /out:c:\temp\Interop.ActiveDs.dll /silent

本参考,而不是ActiveDs和错误dissappear。

Reference this instead of ActiveDs, and the errors dissappear.

这篇关于是什么原因导致"类型库导入无法转换签名成员"警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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