void Add2() { XString str = L"Hello"; str += L" "; str += L"World"; wprintf(L"%s\n", str.GetString()); }
void GetBuffer() { XString str = L"Hello"; wchar_t* p = str.GetBuffer(20); wcscpy_s(p, 20, L"Hello World"); str.ReleseBuffer(); str += L"!"; wprintf(L"%s\n", str.GetString()); }