bool FileExists(char * fname)
{
return ::GetFileAttributes(fname) != DWORD(-1);//if failed then return 0xFFFFFFFF
}
Почему DWORD(-1) и ..почему 0xFFFFFFFF в случае фэйла?
bool FileExists(char * fname)
{
return ::GetFileAttributes(fname) != DWORD(-1);//if failed then return 0xFFFFFFFF
}