CString myString = "FA"; //0xFA = 250 long myNumber = strtol((LPCSTR)myString, NULL, 16); //We dont care where the end of the string was for this example, so the 2nd param is NULL //myNumber = 250;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)