c++ - 程序无法启动,因为您的计算机缺少 mfc120ud.dll

标签 c++ visual-studio dll

我正在尝试运行我最近在另一台计算机上开发并使用 VS2013 编译的应用程序。

运行它我得到:

The program can't start because mfc120ud.dll is missing from your computer. Try reinstalling the program to fix this problem.

我已经从网上搜索了 mfc120ud.dll,但没有找到任何结果。我已经将这个 dll 文件从我开发该应用程序的计算机复制/粘贴到另一台计算机的 system32 上,这样做意味着:

C:\Users\u\System32\mfc120ud.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.

知道我正在开发的计算机是 64 位的,另一台是 32 位的,并且我已经从 System32 复制/粘贴了 mfc120ud.dll 版本,我该如何解决这个问题问题?

最佳答案

The program can't start because mfc120ud.dll is missing from your computer. Try reinstalling the program to fix this problem.

那是MFC 的调试库之一。这是您在构建程序的调试版本时链接的库。它存在于您的开发人员计算机上,但您无法重新分发它。

您需要执行以下操作:

  1. 构建您的项目以供发布。这将链接到任何运行时 DLL 的发布版本。
  2. 在您计划运行程序的任何机器上安装 MSVC 和 MFC 可再发行依赖项。另一种方法是将运行时 DLL 安装在与可执行文件相同的目录中。

I've copied/pasted the mfc120ud.dll version from System32

你不能这样做。原路返回并撤销。

关于c++ - 程序无法启动,因为您的计算机缺少 mfc120ud.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22939558/

相关文章:

c++ - Eigen 中的点积乘以转置?

c# - Visual Studio 2008 中的工具提示文档 - 信息不足

c++ - 使用 VS2008 编译的 C/C++ 中的结构复制问题

Delphi 7 调用 DelphiXE2 dll 导致宽字符串损坏

c# - 如何找到依赖于特定依赖项的特定版本?

c++ - VS 2013 单元测试不起作用 => 设置执行上下文时出错

c++ - 动态内存调整字符数组大小

c++ - 编写可以从 C++ 使用的 C 头文件

c# - c# 可以像 VB.NET 一样自动更正语法大小写吗?

c++ - 收到 "vector iterators incompatible"错误