Groups | Blog | Home
all groups > visual c > december 2003 >

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


anonymous NO[at]SPAM discussions.microsoft.com
12/12/2003 9:58:05 AM
I'm not going to help you "deliver the votes" to GWB, Ken.

[quoted text, click to view]
Ken Varn
12/12/2003 10:47:18 AM
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
-----------------------------------

Ken Varn
12/12/2003 1:35:36 PM

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
-----------------------------------
[quoted text, click to view]

ferdinand oeinck
12/13/2003 10:06:18 AM
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.

[quoted text, click to view]

AddThis Social Bookmark Button