Se parliamo di valori "fino a 32 bit" come
D9876000
e il valore non ha segno, allora
Se il valore ha un segno, alloracodice:CString sTlgClear = "D9876000"; unsigned int i = strtoul(sTlgClear, NULL, 16); printf("%u\n", i);
codice:CString sTlgClear = "D9876000"; int i = strtoul(sTlgClear, NULL, 16); printf("%d\n", i);

Rispondi quotando