Hello,
I want to insert unicode character in a CString object using Format method.
CString sBuf;
int iCar = 0xB2; <----------------------- I would like to set 0x03B2
sBuf.Format("Car is %c", iCar);
How can I do that ?
Thanks to all.
Printable View
Hello,
I want to insert unicode character in a CString object using Format method.
CString sBuf;
int iCar = 0xB2; <----------------------- I would like to set 0x03B2
sBuf.Format("Car is %c", iCar);
How can I do that ?
Thanks to all.
Try CStringT
If your project is compiled with _UNICODE flag you can use:otherwiseCode:CString sBuf;
sBuf.Format(_T("Car is %c"), 0x03B2);
Code:wchar_t buf[100];
swprintf(buf,L"Car is %c",0x03B2);