VB array to managed Code, HELP!
-
I'm writing a com callable wrapper to make it possible for vb6 developers to call the new objects written in C#. I have trouble to pass an array of any kind from vb6 to the .Net object. this is the method in c#: public string TestMethod(string[] str) and the call in vb6 is: str2 = secAccess.TestMethod(str) and then i get the following compiler error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic. I also tried to use [MarshalAs(UnmanagedType.SafeArray)] in the C# call but I get the same error. Can somebody help me with this problem. Please send an answer to mark.willems@rabobank.com regards, Mark
-
I'm writing a com callable wrapper to make it possible for vb6 developers to call the new objects written in C#. I have trouble to pass an array of any kind from vb6 to the .Net object. this is the method in c#: public string TestMethod(string[] str) and the call in vb6 is: str2 = secAccess.TestMethod(str) and then i get the following compiler error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic. I also tried to use [MarshalAs(UnmanagedType.SafeArray)] in the C# call but I get the same error. Can somebody help me with this problem. Please send an answer to mark.willems@rabobank.com regards, Mark