개발자료/MFC&WIN32
유니코드 파일저장
구룡포과메기
2011. 2. 13. 02:50
EF BB BF UTF-8
FE FF UTF-16/UCS-2, little endian windows
FF FE UTF-16/UCS-2, big endian
FF FE 00 00 UFT-32/UCS-4, little endian
00 00 FE FF UFT-32/UCS-4, big-endian
EX)
USHORT Test_Short = 0xfeff;
CString Test_String="";
Test_String.Format(L"%d", Test_Num);
WriteFile(hFile, &Test_Short, 2, &dwNumWrite, NULL);
WriteFile(hFile, Test_String, lstrlen(test)*2, &dwNumWrite, NULL);