int i=0; char integer_string[] = "63"; //The 63 is the value that must change based on the entry from the user into the textbox aptly named "dec". char hex_string[10] = ""; i = atoi (integer_string); sprintf (hex_string, "0x%02X", i); hex->Text = gcnew String(hex_string);
int i=0; i = Int32::Parse(dec->Text); char hex_string[10] = ""; sprintf (hex_string, "0x%02X", i); hex->Text = gcnew String(hex_string);
i = int32::Parse(dec->Text); // assuming your 'decimal' TextBox name is 'dec'
integer_int
sprintf (hex_string, "0x%02X", i); ...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)