关于SHFileOperation「建议收藏」

关于SHFileOperation「建议收藏」
CStringstr=”f://11″;
FileOp.pFrom = (LPCTSTR)str;
 
执行不成功,翻了下msdn
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.WIN32COM.v10.en/shellcc/platform/shell/reference/structures/shfileopstruct.htm
 pFromAddressofabuffertospecifyon

大家好,又见面了,我是你们的朋友全栈君。

CString str=”f://11″;

FileOp.pFrom  =  (LPCTSTR)str;

 

执行不成功,翻了下msdn

ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.WIN32COM.v10.en/shellcc/platform/shell/reference/structures/shfileopstruct.htm

 

pFrom

Address of a buffer to specify one or more source file names. These names must be fully qualified paths. Standard Microsoft MS-DOS wild cards, such as “*”, are permitted in the file-name position. Although this member is declared as a null-terminated string, it is used as a buffer to hold multiple file names. Each file name must be terminated by a single NULL character. An additional NULL character must be appended to the end of the final name to indicate the end of
pFrom .


发现是屁股后面需要2个0

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/161020.html原文链接:https://javaforall.net

(0)
上一篇 2022年7月17日 下午11:36
下一篇 2022年7月17日 下午11:46


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号