阅读:1334回复:0
请求帮助
在使用API函数时对文件进行查询时使用结构LPWIN32_FIND_DATA
但是有错请求高手帮助 char szBuf[MAX_PATH]; // char cFileName[MAX_PATH]; HANDLE SearthFile; LPTSTR lpFile; LPWIN32_FIND_DATA lpffd; SearthFile=FindFirstFile(\"xiuha.exe\",lpffd); szBuf=lpffd.cFileName; --------------------Configuration: xiuha - Win32 Debug-------------------- Compiling... xiuha.cpp C:\\mulu\\xiuha.cpp(231) : error C2228: left of \'.cFileName\' must have class/struct/union type Error executing cl.exe. xiuha.obj - 1 error(s), 0 warning(s) |
|
|