BOOL IsFileExist(LPCTSTR lpFileName) { if(NULL == lpFileName) { return FALSE; } else { BOOL bExist = TRUE; HANDLE hFind = INVALID_HANDLE_VALUE; WIN32_FIND_DATA DataFind; hFind = FindFirstFile(lpFileName, &DataFind); if(INVALID_HANLDE_VALUE == hFind) { bExist = FALSE; } else { FindClose(hFind); return bExist; } } }