Ejemplo n.º 1
0
String  String::operator+(int number) const
{
    TCHAR strNum[16];
    itots_s(number, strNum, 15, 10);

    return *this + strNum;
}
Ejemplo n.º 2
0
String& String::operator+=(int number)
{
    TCHAR strNum[16];
    itots_s(number, strNum, 15, 10);

    return *this += strNum;
}
Ejemplo n.º 3
0
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);
}
Ejemplo n.º 4
0
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);
}