应用程序尝试错误地加载C运行时库 [英] An application has made an attempt to load the C runtime library incorrectly
问题描述
Hello All,
在vc ++中,我尝试在Windows XP上运行exe(Myapp.exe)时遇到错误机器。
不知道为什么......
程序:C:\Program Files\MyApplicationFolder\Myapp.exe
R6034
应用程序尝试加载C运行时库错误。
请联系应用程序的支持团队获取更多信息。
观察:当我重命名时,有一个与EXE对应的清单文件那个清单文件,我可以看到Myapp.exe成功运行。
清单文件如何依赖于EXE以及为什么我不重命名时会出现上述错误。
问候,
Joy
Hello All,
In vc++, I am getting below error when try to run exe (Myapp.exe) on windows XP machines.
Not sure why...
Program: C:\Program Files\MyApplicationFolder\Myapp.exe
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.
Observation: There is a manifest file corresponding to EXE, when I rename that manifest file, I can see that Myapp.exe runs succesfully.
How does the manifest file depend with EXE and why I get above error when I do not rename.
Regards,
Joy
推荐答案
在清单中是dll与其应用程序的版本。 Microsoft运行时搜索并在启动时加载清单。如果它没有找到匹配的dll版本,它会抱怨 - 当你重命名清单时,加载器会发现不是那个清单,也许它使用了exe中的清单或默认的东西。
PS:如果你附上了清单,我对你的DLL地狱有了更好的理解; - )
In the manifest are the dlls with its versions for the app. The Microsoft-runtime searches and loads at startup the manifest. If it doesnt find that matching dll versions it complains- When you rename the manifest the loaders finds NOT that manifest, and maybe it uses the manifest in exe or defaults to something.
PS: if you had appended the manifest, I had a better understanding of your "DLL Hell" ;-)
这篇关于应用程序尝试错误地加载C运行时库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!