洛阳住房和城乡建设部网站,建筑工程发布网站,门户网站运营是什么,品牌宣传如何做近期在开发中发现SHFileOperation函数在Win7中的使用对路径的格式有更加严格的限制#xff0c;而在Win8中则直接报错#xff0c;返回值为8#xff0c;错误原因不详。
在MSDN中发现如下说明#xff1a; Note As of Windows Vista, the use of the IFileOperation interfac…近期在开发中发现SHFileOperation函数在Win7中的使用对路径的格式有更加严格的限制而在Win8中则直接报错返回值为8错误原因不详。
在MSDN中发现如下说明 Note As of Windows Vista, the use of the IFileOperation interface is recommended over this function. 由于IFileOperation接口的使用过于繁琐暂时以CopyFile函数代替在Vista以后的版本中尽量不再使用SHFileOperation函数。