Thank you for your help. That function, combined with a wchar_t string did the trick. Here's the test code I wrote:
HANDLE NewFile;
wchar_t WCharBuffer[101];
DWORD ReadBytes;
NewFile = CreateFile(_T("c:\\temp\\unicode.txt"), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING...
I have a Unicode text file. (I can tell because the characters 0xFF and 0xFE are the first two characters in the file and looking at it in a binary editor, I can see that each character is followed by a null character). My problem is this: when I use ReadString, it takes each individual byte...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.