CreateFile
我用QT编译时为什么会报错呢
D:\project\Qt\123456\main.cpp:14: 错误:cannot convert 'const char*' to 'const WCHAR*' for argument '1' to 'void* CreateFileW(const WCHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)'
hFile = CreateFile("5.txt",GENERIC_WRITE,0,NULL,CREATE_NEW,FILE_ATTRIBUTE_NORMAL,NULL);
这样有错么?
杨__羊羊
凤凰求蛊