大家好,又见面了,我是你们的朋友全栈君。
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.cn/161020.html原文链接:https://javaforall.cn