首页
社区
课程
招聘
[旧帖] [求助]文件夹复制问提 0.00雪花
发表于: 2014-9-23 21:47 1449

[旧帖] [求助]文件夹复制问提 0.00雪花

2014-9-23 21:47
1449
bool MoveFile()
{
        WCHAR *pszUnicode = L"c:\\种子资源"; // unicode string
WCHAR *pnicode = L"C:\\Documents and Settings\\Administrator\\桌面\\"; // unicode string

        SHFILEOPSTRUCTW FileOp={0};
        FileOp.fFlags = FOF_NOCONFIRMATION|FOF_SILENT |         //不出现确认对话框
                FOF_NOCONFIRMMKDIR ; //需要时直接创建一个文件夹,不需用户确定
        FileOp.pFrom = pszUnicode;
        FileOp.pTo = pnicode;
        FileOp.wFunc = FO_MOVE;
        return SHFileOperationW(&FileOp) == 0;   
}、]
为什么失败哦

[课程]Linux pwn 探索篇!

收藏
免费 1
支持
分享
最新回复 (1)
雪    币: 56
活跃值: (34)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
2
你看下错误码是什么,你的代码在我win xp上执行成功的
2014-9-24 12:10
0
游客
登录 | 注册 方可回帖
返回
//