如何从.NET中使用VB6 DLL? 该DLL具有名为rfc的方法,返回一个数组,并具有一个整数向量参数。如何调用此DLL? 请提供示例。 var cls = new MyDllVB6.MyClassInVB6(); /*?Array?*/ = cls.MyFunctionInClass( /*?Vector of integer?*/);
int[] vectorOfIntegers = new int[5]; vectorOfIntegers[0] = 123; vectorOfIntegers[1] = 456; . : int[] outputArray = cls.MyFunctionInClass(vectorOfIntegers);