简体   繁体   English

缺少msvcp100.dll - 更多信息错误

[英]msvcp100.dll is missing - a more informative error

I have a lot of users reporting that they get the "msvcp100.dll is missing" error. 我有很多用户报告他们收到“msvcp100.dll缺失”错误。

Instead of having users keep reporting this and reply that they need to install the C++ redistributable I would like to change the error text into something more meaningful, eg tell them that they need to install C++ redist. 而不是让用户继续报告并回复他们需要安装C ++可再发行组件我想将错误文本更改为更有意义的内容,例如告诉他们需要安装C ++ redist。

Is this possible? 这可能吗?

If you don't want to force users to install the redistributable, you can statically link to the runtime. 如果您不想强制用户安装可再发行组件,则可以静态链接到运行时。 Go to your Project Settings and find C/C++ >> Code Generation . 转到Project Settings ,找到C/C++ >> Code Generation Change the runtime library setting to multithreaded ( /MT ) instead of multithreaded dll ( /MTd ). runtime library设置更改为multithreaded/MT )而不是multithreaded dll/MTd )。

I am not sure if it is possible to change the error message. 我不确定是否可以更改错误消息。 I highly doubt this because it is an error of the loader of the OS. 我非常怀疑这是因为它是操作系统加载程序的错误。
So why don't you create an installer for your application that will do the checking and if necessary the installation of the redist package? 那么为什么不为您的应用程序创建一个安装程序来进行检查,并在必要时安装redist软件包?

您还可以在应用程序的发行版中包含您的应用程序所需的dll

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM