bool FileIsExist(const char *pPath){// if (_access(pPath,0) != 0) /// 当为盘符时出错// return TPI_ERR_DIRNOEXIST; WIN32_FIND_DATA finddata; HANDLE hfile = FindFirstFile(pPath, &finddata); if( hfile == INVALID_HANDLE_VALUE ) { return false; } FindClose(hfile); return true;}