为什么这段代码不输出任何东西(除了信息字)?文件存在。
hReadFile = CreateFile(L"indexing.xml",GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ |FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
wchar_t *wchr = new wchar_t[20];
DWORD dw;
ReadFile(hReadFile, wchr, sizeof(wchar_t) * 5, &dw, NULL);
CloseHandle(hReadFile);
wchr[dw/sizeof(wchar_t)] = L'\0';
std::wcout << L"info " << wchr << L" " << dw << std::endl;