[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Passing an array from VB 6 to C# DLL

Asked by axnst2 in .NET, Microsoft Visual C#.Net, Windows ATL / WTL / COM Programming

Tags: Visual Basic 6.0, .NET

Hi Experts,

          I have a class in a C# class library.  In this class I have a function that excepts an array of another class that is also in the same C# DLL.
           From VB 6 I can use both classes no problem.  I need to know how to do the following:

dim instancClass1 As CSharpClass1
dim instanceClass2Array(2) as CSharpClass2

Set instancClass1 = New CSharpClass1
Set instanceClass2Array(0) = New instanceClass2Array
Set instanceClass2Array(1) = New instanceClass2Array

Call instancClass1.LoadArray(instanceClass2Array)       '<- I get an error on this at compile time

Error: "Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic"

I would appreciate any help on this!

 
Related Solutions
 
Loading Advertisement...
 
[+][-]10/30/09 02:56 PM, ID: 25707078Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 11:02 AM, ID: 25742644Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 08:42 PM, ID: 25746832Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625