检查干嘛,
直接 mkdir("c:\aaa");
就行了。
直接 mkdir("c:\aaa");
就行了。
解决方案 »
- 将Clistctrl控件中的数据保存到数据库的问题???
- 我照书打的代码,为什么编译不过去。而光盘上的却能编译
- 关于VC++二次开发中多个USB硬件工业控制故障。
- 求Pelco,PTZ协议的demo程序?
- 如何用CWnd类的方法Create来创建一个独立的弹出窗口.
- 请教高手怎么在xp下 安装packet驱动 在线等待
- 请教一道软考题,请一定帮忙看看
- 窗口句柄作为参数传到DLL中,在DLL中如何把m_hWnd转化成窗口指针?急,在线等。。。。。。
- 请问各位高手,谁知道如何通过vc访问office环境下的宏,包括读取和修改功能
- 关于键盘问题(高分求助)
- C Run-Time Error R6025 pure virtual function call 通常是什么问题?(请帮帮忙)
- CWindows是个什么类?我怎么找不到他的基类?
如果函数的返回值为0XFFFFFFFF,则表明目录不存在if(CFile::GetStatus(path,CFileStatus &fs))
PathFileExists
Determines whether a path to a file system object such as a file or directory is valid. BOOL PathFileExists(
LPCTSTR pszPath
);Parameters
pszPath
Full path of the object to verify.
Return Values
Returns TRUE if the file exists, or FALSE otherwise. Call GetLastError for extended error information.
Res
This function tests the validity of the path. It works only on the local file system or on a remote drive that has been mounted to a drive letter. It will return FALSE for remote file paths that begin with the UNC names \\server or \\server\share. It will also return FALSE if a mounted remote drive is out of service. Requirements
Version 4.71 and later of Shlwapi.dll Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 4.0 or later).
Windows 95/98/Me: Requires Windows 98 (or Windows 95 with Internet Explorer 4.0 or later).
Header: Declared in Shlwapi.h.
Import Library: Shlwapi.lib
The MakeSureDirectoryPathExists function creates all the directories in the specified DirPath, beginning with the root.BOOL MakeSureDirectoryPathExists(
PCSTR DirPath
);