FindFirstFile
I want to read every file in a directory and cut it out afterwards. Therefore I want to use FindFirstFile. My code looks like the following:
string path;
string fullPath;
HANDLE hFile;
WIN32_FIND_DATA fileInformation;
//FILE_PATTERN = const string "kev*"
//baseDirectory = string
path = baseDirectory + "\\" + FILE_PATTERN;
hFile = ::FindFirstFile(path.c_str(), &fileInformation);
Now I get the following error and I don't know why:
Error 1 error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR'
I looked at the code example from Example (http://www.dev-archive.com/forum/showthread.php?t=312461) , but I think there's hardly any difference, or am I just blind...?
I'm using VS2005 on Windows XP.
Can anyone help me? Thanks.

