[QUOTE=novacain;1155877]You use a combo of MFC and C IIRC.
Have you tried....
IIRC sorry I don't understand what that means?
_snprintf(output, len-1,"DEC:%d, HEX:%X",charTotal,charTotal);
Well I do this for enjoyment not employment and everything is self taught out of books etc. so please excuse the roughness.
Anyway many thanks you put me onto the path I actually got it working for what I was trying to do please see below code and well it works any suggestions on improving it are most welcome.
Thanks again for your time.
GetDlgItemText(IDC_EDIT1, name, 80);
len = strlen(name);
_snprintf_s(char_entered, 2, "%X", name[i]);
charin = atoi (char_entered);
Running_Total += charin;