kan*_*gbe -2 c++ winapi windows-7
我有一个小应用程序,试图移动文件.
这是最小代码:
#include <windows.h>
int main()
{
MoveFile("C:\\test.txt", "C:\\folder\\test.txt");
// Here I use GetLastError() to get last error code witch is 2 and I can't find what mean;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
重要说明:此错误出现在Windows 7上,但在win XP工作时,文件被移动!
| 归档时间: |
|
| 查看次数: |
4299 次 |
| 最近记录: |