How do I pass a reference to a value type multi-dimensional array?

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
-----------------------------------
 
K

Ken Varn

If you don't have any useful information to offer then don't reply to the
message. It's hard enough to get legitimate responses to questions without
having responses like these clog up the newsgroup.

I don't even work on the product that you are referring to.


--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
 
F

ferdinand oeinck

I read an article about Diebold and its leaked internal forum discussions.
It seems Diebold needs as much help as possible... Looking to the US from
outside isn't really a happy thing to do these days, especially if the craft
I'm loving to do most would be misused for politcal purposes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top