示例#1
0
文件: XString.cpp 项目: Eridia/OBS
String  String::operator+(int number) const
{
    TCHAR strNum[16];
    itots_s(number, strNum, 15, 10);

    return *this + strNum;
}
示例#2
0
文件: XString.cpp 项目: Eridia/OBS
String& String::operator+=(int number)
{
    TCHAR strNum[16];
    itots_s(number, strNum, 15, 10);

    return *this += strNum;
}
示例#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);
}
示例#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);
}