0

Hi all,

I just need the array type of Person object. So it will be an array object.
Please some help.

void SomeOtherFunction() 
{
MyDataType ^Person = gcnew MyDataType(); // simple Person object  (C++/CLI)
}

Edited by cangan: .

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by cangan
0

Thanks .

void SomeOtherFnc() 
{
array<MyDataType^> ^DataObject = gcnew array<MyDataType^>(10);
DataObject[1] = gcnew MyDataType;
DataObject[1]->id = 2012;
textBox1->AppendText((Convert::ToString(DataObject[1]->id )));
}

PS.Actually its not that tutorial.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.