I am using ECC++ 4.0 and WinCE 4.2 emulator, I have create a unicode text file and the file contents is as below:
I read the contents of the file and display in the multiline edit box. The result is as below:
But this is not the result that I expect, how should I display in edit box as below:
I had tried to use AfxMessageBox() to display the result and it give me the correct result.
Below is my code:
m_sListSerial = _T("");
if (f.Open(L"serialno.txt", CFile::modeRead | CFile::shareExclusive | CFile::typeText))
m_sListSerial += s;
WideCharToMultiByte(CP_ACP, 0, m_sListSerial, -1, asciibuff, 4096, NULL, NULL);
m_sSerialNo = asciibuff;
Can someome please help. Thanks in advance.