简体   繁体   English

在VB6(dll文件)中,函数的类型为variant,如在调用中一样。 净?

[英]Function in VB6 (dll files) with a parameter of type variant, as in the call. net?

I have a dll with a method. 我有一个方法的dll。 This method accepts an object parameter (in .net) in vb6 it is defined as a variant, which is a vector of strings. 此方法在vb6中接受一个对象参数(在.net中),它被定义为一个变体,它是字符串的向量。

How can I make the call to this method on .net passing an array of strings? 如何在.net上通过字符串数组对该方法进行调用?

Please send me an example 请给我一个例子

thanks 谢谢

Both parties have good support for COM. 双方对COM都有很好的支持。 I can't tell from your question whether or not the call comes from .net or VB6, but either way it will be simplest to communicate with good old fashioned COM. 我无法从您的问题中得知该呼叫是否来自.net或VB6,但是无论哪种方式,与老式的COM进行通信都是最简单的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM