Fouly
March 7th, 2009, 01:44 AM
The following question is asked in regards to the following FAQ (http://www.codeguru.com/forum/showthread.php?t=312461):
I got an error on the following line of code:
hFile = ::FindFirstFile(strPattern.c_str(), &FileInformation);
Error 4 error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR'
I think it's a Unicode error but i don't know how to resolve it!!!
I got an error on the following line of code:
hFile = ::FindFirstFile(strPattern.c_str(), &FileInformation);
Error 4 error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR'
I think it's a Unicode error but i don't know how to resolve it!!!