http://blog.csdn.net/shen_wei/article/details/6823049这些人啊。。你的MSDN什么版本?呵呵,我的版本是:QuickInfo Windows NT: Requires version 3.1 or later. Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95. Windows CE: Unsupported. Header: Declared in imagehlp.h. Import Library: Use imagehlp.lib.和你的博文里不太一样,呵呵
BOOL WINAPI MakeSureDirectoryPathExists(
__in PCSTR DirPath
);
CString strPath = L"C:\\Users\\Administrator\\Documents\\RIFT\\Interface\\saved";
strPath += L"\\";
strPath += L"GameServer";
_mkdir(strPath);
strPath += L"\\"
strPath += L"SavedVariables";
_mkdir(strPath);
strPath += L"\\";
strPath += L"ab.doc"
//最后创建文档,方法需要自己查一下
成功返回非零,
失败返回0,可随后通过GetLastError()取得错误原因:
ERROR_ALREADY_EXISTS表示文件夹已存在
ERROR_PATH_NOT_FOUND 表示要创建的文件夹之前的1个或多个目录不存在
http://blog.csdn.net/shen_wei/article/details/6823049这些人啊。。
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in imagehlp.h.
Import Library: Use imagehlp.lib.和你的博文里不太一样,呵呵