当前位置: 代码迷 >> PB >> 关于CopyFile()函数的有关问题
  详细解决方案

关于CopyFile()函数的有关问题

热度:134   发布时间:2016-04-29 09:31:13.0
关于CopyFile()函数的问题
同样的一段copyfile()代码,我在pb8下就能执行复制成功,但是在pb10底下就复制失败,这是为什么呢

------解决方案--------------------
C/C++ code
Return value Integer. Returns values as follows:1 Success-1 Error opening sourcefile-2 Error writing targetfile
------解决方案--------------------
探讨
C/C++ code

Return value

Integer. Returns values as follows:

1 Success
-1 Error opening sourcefile
-2 Error writing targetfile

------解决方案--------------------
不用API, 直接用PB 的filecopy() 试一下。
  相关解决方案