Riven
November 9th, 2009, 11:02 AM
I was looking at an MSDN example code and it works fine for me but I am not completely sure what all of the lines are doing. I understand how everything works but this one line in the code. Could some one explain what the Object^ line is all about?
int selectedIndex = comboBox1->SelectedIndex;
Object^ selectedItem = comboBox1->SelectedItem;//What does the Object^ part and this line do?
MessageBox::Show( "Selected Item Text: " + selectedItem->ToString() + "\n" +
"Index: " + selectedIndex.ToString() );
int selectedIndex = comboBox1->SelectedIndex;
Object^ selectedItem = comboBox1->SelectedItem;//What does the Object^ part and this line do?
MessageBox::Show( "Selected Item Text: " + selectedItem->ToString() + "\n" +
"Index: " + selectedIndex.ToString() );