CString hex = _T("FAB");
CString decimal = _T("4011");
unsigned long ul1 = _tcstoul(hex,0,16);
cout << ul1 << endl;
int Int1 = _ttoi(decimal);
cout << Int1 << endl;
CString decimal = _T("4011");
unsigned long ul1 = _tcstoul(hex,0,16);
cout << ul1 << endl;
int Int1 = _ttoi(decimal);
cout << Int1 << endl;