Ma questo allora è Managed C++... allora devi usare System::Int32::Parse.
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum