Wolfie7873
Technical User
So I learned today that VC++.NET doesn't like to do an on-the-fly cast conversion. I'm hoping for a workaround.
I have an ArrayList object that contains integers only, and I want to get an item, and process the integer with a switch:
Now, the compiler tells me that it doesn't want to convert the virtual object type to an int that the switch statement can play with. So, how do I actually use the return of the get_Item() method?
Thanks in advance.
Eddie
I have an ArrayList object that contains integers only, and I want to get an item, and process the integer with a switch:
Code:
__property void set_MSCheckList(ArrayList* myList) {
for (int i=0; i< myList->Count; i++) {
switch(myList->get_Item(i)) {
case 1: {
// do something with '1'
}
//etc.
}
}
}
Now, the compiler tells me that it doesn't want to convert the virtual object type to an int that the switch statement can play with. So, how do I actually use the return of the get_Item() method?
Thanks in advance.
Eddie