开发者

Installing VC++ 2010 doesn't fix dll loading problem

I have a C++ .exe compiled with /MDd (since I can't use CLR with /MTd). At first I was getting couldn't find x.dll that is installed when installing the VC++ runtime. 开发者_C百科After I installed the VC++ 2010 runtime, I still get the error. I've verified that the .dll it's looking for (msvcpsomethingd.dll) is located in the correct folder ([SystemDrive]\Windows\system32). Has anyone run into this problem before?


How to deploy debug CRT .dlls

How to deploy CRT .dlls in general to the application local folder

The short answer is you have to explicitly install the CRT debug runtime for VS 2010 with a custom setup project on the target machines OR ensure the CRT .dlls for the platform are in the same folder as the application.

You will have to explicitly install the CRT if you are using multiple versions of the debug CRT (i.e., x86 and x64).


The best way to solve these issues is to use the depends.exe tool. Profile the program and it will tell what you are missing.


Compile with release mode and run on different PC. It seems like one/more of your DLLs are compiled using Debug build or dependencies.

It could be your referenced library as well..


Ensure that correct Redestributable of VC++ 2010 is installed:

  • 32-bit OR 64-bit, depending on your application, not as per target OS.
  • Appropriate RTM or Service Pack version.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜