wchar_t* Pfad;
wcin >> Pfad;
wchar_t* file = Pfad + "*.quiz";
Not working for me, how can I make this work?
It says "*.quiz"
is wrong, something like it has to be a numeric value or something like that.
Well sorry, I am new to c++...
and my actual problem is, I use this, but I want to user to select the path
something like cin >> file
but I don't want the user to have to type "*.quiz";
wchar_t* file = L"C:/Users/Niku/Documents/Visual Studio 2012/Projects/Quiz/Quiz/Fragen_Niko/*.quiz";
WIN32_FIND_DATA FindFileData;
HANDLE hFind;
hFind = FindFirstFile(file, &FindFileData);
if( hFind != INVALID_HANDLE_VALUE ) {
max++;
while ((x = FindNextFile(hFind, &FindFileData)) == TRUE)
max++;
}
If I use anything else besides wchar_t* it's not working..