Jun 26, 2010 at 10:29am UTC
Hello.
Does anyone have some hints or tips on how to list all the files in a folder on C:?.
Jun 26, 2010 at 11:41am UTC
Thanks for the link :) now i get something i dont understand here
Error 2 error C2664: 'std::vector<_Ty>::push_back' : cannot convert parameter 1 from 'WCHAR [260]' to 'const std::string &
and
Error 2 error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'const char [17]' to 'LPCWSTR'
Jun 26, 2010 at 12:09pm UTC
UNICODE... Disable unicode or use L"[Yor Text Here]"
or _T("[Your Text Here]" )
Jun 26, 2010 at 12:25pm UTC
It worked but now it tells me
Error 2 error C2664: 'FindFirstFileA' : cannot convert parameter 2 from 'WIN32_FIND_DATA' to 'LPWIN32_FIND_DATAA'
Jun 26, 2010 at 12:39pm UTC
Either disable UNICODE OR use the macros... or use the TEXT-Macro...
EDIT: The W-appendix after a function´s name indicates the unicode-version of the function , and A indicates ANSI (non-unicode):P...
Last edited on Jun 26, 2010 at 12:39pm UTC
Jul 15, 2010 at 7:43am UTC
Error 2 error C2664: 'FindFirstFileA' : cannot convert parameter 2 from 'WIN32_FIND_DATA' to 'LPWIN32_FIND_DATAA'
'FindFirstFileA' need an address of 'WIN32_FIND_DATA' object , but you give it a object of 'WIN32_FIND_DATA' , you can use & before your var