String String::operator+(int number) const { TCHAR strNum[16]; itots_s(number, strNum, 15, 10); return *this + strNum; }
String& String::operator+=(int number) { TCHAR strNum[16]; itots_s(number, strNum, 15, 10); return *this += strNum; }
void ConfigFile::AddInt(CTSTR lpSection, CTSTR lpKey, int number) { if(!bOpen) return; TCHAR strNum[20]; itots_s(number, strNum, 19, 10); AddKey(lpSection, lpKey, strNum); }
void ConfigFile::SetHex(CTSTR lpSection, CTSTR lpKey, DWORD number) { if(!bOpen) return; TCHAR strNum[22] = TEXT("0x"); itots_s(number, strNum+2, 19, 16); SetKey(lpSection, lpKey, strNum); }