I used the following code to perform this operation in VS 2005:
if (listView1->SelectedItems->Count > 0)
{
listView1->Items->RemoveAt (listView1->SelectedIndices [0]);
numericUpDown1->Value -= 1;
}
However, I need a program to compile in VS 2003 in order for it to run on a school computer.
Therefore, I inputted the code once again into VS 2003, but it gave the error
syntax error '[' : cannot perform pointer arithmetic on __gc pointer 'System::Windows::Forms::ListView::SelectedIndexCollection __gc *'
Can someone help me convert this code into VC++ 2003 compatible?
Thanks in advance