|
-
February 11th, 2005, 09:32 AM
#1
Arrays from C# to VB6
if I create an array in a C# class, and I have a method in the class like
public void ReferenceArray(out short[] VB6ArrayRef)
{
VB6ArrayRef = mDefinedArray;
}
now on the VB6 side:
Dim Temp() As Integer
Dim Temp2() As Integer
mzSomeObject.ReferenceArray Temp
mzSomeObject.ReferenceArray Temp2
Temp(1) = 23
why does Temp2 not show the change that temp just made. The intent was for Temp and Temp to reference the same array which resides in the C# class.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|