   Hot to convert a number to System::String ^
  Hi, I'm new here!I came here because I have some projects in mind, like 2D Games: Fighting and RPG (personal two favorites XD), and maybe some 3D in the future.First of all, I'm programming in Visual C++ "8", and I'm so tired of searching in google, downloading books, etc... I searched this forum too, and didn't find anything.Just find one example, the best I found, but still not enough:char* strNumberString = (char*)malloc(8);strNumberString = itoa( number, strNumberString, 10);It always gives errors like: "'itoa' was declared deprecated" and "cannot convert parameter 1 from 'char *' to 'System::String ^'".I would like to receive some practical code answers and not answers like go to the msdn help or go google or check the forum, because I already did all that, as I said in the beggining. I'm asking here as my last option!PD: It's an Windows Forms Application and it's a code for a button:private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) { int number = 0; char* strNumberString = (char*)malloc(8) if(Int32::TryParse(textBox1->Text, number))    label1->Text = "¡Convertion successful!\nand the number is: "; strNumberString = itoa( number, strNumberString, 10); label1->Text = label1->Tex + strNumberString;}As you see, I did the string to number convertion with Int32::TryParse(textBox1->Text, number).Ok, thanks for your time, see you next time!PD2: Fogive my english.   
  Um. Was there a question in there?   ;  As you seem to be using managed c++ you can use the System.Convert class for all sorts of nice things.  In this case Convert.ToString() is what you're looking for.  It can be overloaded for all sorts of types, including integers.When working with managed c++ you'll want to stay far away from char[] strings as well as lots of other holdovers from C.  .Net does basically everything with unicode and has 'nicer' ways of handling most things.   ;  Thank you a lot AntiRush!I changed my code to:int number = 0;if(Int32::TryParse(textBox1->Text, number))    label1->Text = "¡Convertion successful!\nand the number is: ";String^ strNumber = Convert::ToString( number );label1->Text = label1->Tex + strNumber;Convert::ToString totally worked, and I tried this before but without using String^Thank you again for helping a begginer in Visual code.Gotta learn to use the oceanic MSDN database XD[Edited by - Shingematsu on September 8, 2008 4:45:06 PM]