Example #1
0
void Add2()
{
	XString str = L"Hello";
	str += L" ";
	str += L"World";
	wprintf(L"%s\n", str.GetString());
}
Example #2
0
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());
}