检查目录下的物理文件是否存在用哪个函数??? 求教 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 BOOL FileExist(LPCTSTR lpcsFileName){ /* Check for existence */#ifdef _UNICODE if( (_waccess( lpcsFileName, 0 )) != -1 )#else if( (_access( lpcsFileName, 0 )) != -1 )#endif return TRUE; return FALSE;}试试这个函数! _access("Driver:\\Dir\\FileName", 0 )) != -1) int _access( const char *path, int mode );mode Value Checks File For -----------------------------00 Existence only 02 Write permission 04 Read permission 06 Read and write permission 请教CBitmap类的问题 如何修改对话框应用程序的图标? 关于映射模式? 主对话框如何知道子对话框已经关闭了呢? 下面两种访问方法,那一种访问速度快? 那位知道怎么用程序把Microphone的静音去掉? 请教2k下木马dll如何写?看了Shotgun的文章后,我写的就是不成功。 急急,小问题大分数之三!!!!!! 一个关于控件 的问题 什么是外部组件和内部组件 关于文件的传输问题 CPU
{
/* Check for existence */
#ifdef _UNICODE
if( (_waccess( lpcsFileName, 0 )) != -1 )
#else
if( (_access( lpcsFileName, 0 )) != -1 )
#endif
return TRUE;
return FALSE;
}
试试这个函数!
-----------------------------
00 Existence only
02 Write permission
04 Read permission
06 Read and write permission