码迷,mamicode.com
首页 > 其他好文 > 详细

Debug版DLL LoadLibrary R6034异常的原因及解决

时间:2016-12-05 19:28:04      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:font   span   input   sage   cas   pil   size   comm   recommend   

Microsoft‘s recommendation is very confusing. That is, it recommends to include a manifest file and to re-compile the project.
  I recently had a problem with ‘R6034‘ error message even with a manifest file already included!
  In my case, Visual Studio 2005 compiles and builds a DEBUG-configuration of some DLL. But, as soon as I try to start an application that uses that DLL the loader can‘t load the DLL and displays an error message with error code ‘R6034‘.
  It happened because two Run-Time DLLs were referenced in my DLL by some reason! As soon as I looked inside of my DLL I found two strings: ‘msvcr80d.dll‘ and ‘msvcr80.dll‘, and the 2nd one is the reason of that run-time problem.
  In order to resolve the problem I added ‘msvcrt.lib‘ to the list of ignored libraries for DEBUG-configuration:
    [Configuration Properties] -> [Linker] -> [Input] -> ‘Ignore Specific Library‘ -msvcrt.lib

Debug版DLL LoadLibrary R6034异常的原因及解决

标签:font   span   input   sage   cas   pil   size   comm   recommend   

原文地址:http://www.cnblogs.com/shaoxuejun/p/6134899.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!