Conver Data Type Problem
-
PlayerBalance is a String Data Type Bet is a Int32 Data Type I use this Conversation method Bet = System::Int32::Parse(PlayerBalance); //Its OK But This code not work; //error C2865: '<' : illegal comparison for handle type if(Bet < 200) { MessageBox:Show("OK"); } Best Regards...
-
PlayerBalance is a String Data Type Bet is a Int32 Data Type I use this Conversation method Bet = System::Int32::Parse(PlayerBalance); //Its OK But This code not work; //error C2865: '<' : illegal comparison for handle type if(Bet < 200) { MessageBox:Show("OK"); } Best Regards...
-
Hi, Int32 is a value class, you probably used ^ there. Int32 Bet; // should be fine regards Tobias
SOLUTION Bet = System::Int32::Parse(PlayerBalance); OK if(*Bet > 5) //Must be use * { MessageBox::Show("OK"); } Thank you 2bee Best Regards....