[QUOTE=novacain;1155877]You use a combo of MFC and C IIRC.
Have you tried....
Code:
_snprintf(output, len-1,"DEC:%d, HEX:%X",charTotal,charTotal);
IIRC sorry I don't understand what that means?
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.
Code:
GetDlgItemText(IDC_EDIT1, name, 80);
len = strlen(name);
for(i=0; i<len;i++)
{
_snprintf_s(char_entered, 2, "%X", name[i]);
charin = atoi (char_entered);
Running_Total += charin;
}
Thanks again for your time.