K
Ken Varn
I have a function that I would like to pass a reference to a
multi-dimensional managed array so that the function can allocate the array
size. I am not sure how to do this. See below:
{
__value strict ST {int a; int b;}
ST MySt __gc[,];
MyFunc(MySt);
// At this point, I want MySt to point to the object that was newed in
MyFunc.
// Not sure if this will be true or not. If not, how do I do it?
}
void MyFunc(ST Arg __gc[,])
{
Arg = __gc new ST[10,2];
}
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
Emailed = varnk
Domain = Diebold.com
-----------------------------------
multi-dimensional managed array so that the function can allocate the array
size. I am not sure how to do this. See below:
{
__value strict ST {int a; int b;}
ST MySt __gc[,];
MyFunc(MySt);
// At this point, I want MySt to point to the object that was newed in
MyFunc.
// Not sure if this will be true or not. If not, how do I do it?
}
void MyFunc(ST Arg __gc[,])
{
Arg = __gc new ST[10,2];
}
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
Emailed = varnk
Domain = Diebold.com
-----------------------------------