小编kan*_*gbe的帖子

Windows 7上的C++ MoveFile错误(2)

我有一个小应用程序,试图移动文件.

这是最小代码:

#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工作时,文件被移动!

c++ winapi windows-7

-2
推荐指数
1
解决办法
4299
查看次数

标签 统计

c++ ×1

winapi ×1

windows-7 ×1