VC++ 致命错误 LNK1168:无法打开 filename.exe 进行写入

2023-06-04C/C++开发问题
189

本文介绍了VC++ 致命错误 LNK1168:无法打开 filename.exe 进行写入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

突然,我的 Visual Studio Express 2010 C++ 停止重建我的项目.当我第一次点击 F7 时,项目构建并运行良好(哎呀,这是一个 hello world 示例).

Suddenly, my Visual Studio Express 2010 C++ stopped rebuilding my project. When I first hit F7 the project builds and runs fine (heck, it's a hello world example).

然后我进行了一些更改并再次点击 F7,然后我得到:

Then I make some changes and hit F7 again, then I get:

1>LINK : fatal error LNK1168: cannot open C:UsersusernameDocumentsVisual Studio 2010ProjectsconsoleDebugconsole.exe for writing**<br><br>

现在有趣的事情来了:

  1. 该应用未运行且未显示在任务管理器中.
  2. 进入项目目录并尝试用手将其删除会成功,但文件又从无处出现.
  3. 系统还原已禁用.
  4. 我还试图获得整个该死的驱动器的所有权.
  5. 每次我删除文件时,它都会重新创建自己,但有时它会停止这样做.
  6. 如果我删除该文件(并在此之后重新创建),然后我启动 sysinternals procmon,那么该文件就会消失.
  7. 如果我之前启动 procmon - 那么文件会像往常一样在删除后继续出现.

操作系统:W7 SP1 64 位,有最新更新

OS: W7 SP1 64-bit, with latest updates

有什么想法吗?

推荐答案

启用应用体验"服务.启动控制台窗口并输入 net start AeLookupSvc

Enable "Application Experience" service. Launch a console window and type net start AeLookupSvc

  • http://support.microsoft.com/kb/902196

这篇关于VC++ 致命错误 LNK1168:无法打开 filename.exe 进行写入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

无法访问 C++ std::set 中对象的非常量成员函数
Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)...
2024-08-14 C/C++开发问题
17

从 lambda 构造 std::function 参数
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)...
2024-08-14 C/C++开发问题
25

STL BigInt 类实现
STL BigInt class implementation(STL BigInt 类实现)...
2024-08-14 C/C++开发问题
3

使用 std::atomic 和 std::condition_variable 同步不可靠
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)...
2024-08-14 C/C++开发问题
17

在 STL 中将列表元素移动到末尾
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)...
2024-08-14 C/C++开发问题
9

为什么禁止对存储在 STL 容器中的类重载 operator&amp;()?
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)...
2024-08-14 C/C++开发问题
6