This line gives me an Error: "Error C2440: '=' : cannot convert from 'bool' to 'HANDLE'".Code:HANDLE h; if ((h=FindFirstFile("*.*", &info) != INVALID_HANDLE_VALUE)) // do something here
But the function returns HANDLE.
Also when I do this, everything is fine:Can anyone please explain to me how could the same function return different types???Code:HANDLE h; h = FindFirstFile("*.*", &info); if (h != INVALID_HANDLE_VALUE) // do something here