R6034-VC2008编译出来的文件执行时错误

同时引用了msvcrt90.dll 和msvcrt90d.dll

check the following url for more details

 

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=362837

解决:把下面的代码加到工程的cpp文件里。

#ifdef _DEBUG

#pragma comment(linker,"/manifestdependency:\"type='win32' "            \

         "name='" __LIBRARIES_ASSEMBLY_NAME_PREFIX ".CRT' "             \

         "version='" _CRT_ASSEMBLY_VERSION "' "                         \

         "processorArchitecture='x86' "                                 \

         "publicKeyToken='" _VC_ASSEMBLY_PUBLICKEYTOKEN "'\"")

#endif

posted on 2008-12-12 11:37  阿彪  阅读(954)  评论(0编辑  收藏  举报

导航