問題描述
我在谷歌上搜索了這個并意識到可能有幾個原因,所以我將描述我的情況.
I googled on this and realized there are probably several causes to this so I will describe my scenario.
當我的應用程序嘗試加載在另一個版本的 Visual Studio (2010) 中構建的 .dll 文件時會發生這種情況,如果我在 Visual Studio 2008 上構建相同的項目,則 DLL 文件加載得很好...
This happens when my application tries to load a .dll file built in another version of Visual Studio (2010), if I build the same project on Visual Studio 2008 the DLL file loads just fine...
我不知道這是否重要,但 Visual Studio 2010 DLL 文件版本是在 Windows 7 x32 上構建的,而 Windows Vista 64 位與 Visual Studio 2008 位于另一端.>
I don't know if it matters, but Visual Studio 2010 DLL file version is built on Windows 7 x32, and Windows Vista 64-bit is on the other side with Visual Studio 2008.
推薦答案
如果您動態鏈接到 MSVC 運行時,那么您需要在將運行您的應用程序的每臺機器上安裝該運行時.
If you link dynamically to the MSVC runtime then you need to install that runtime on every machine that will run your app.
請注意,在這種情況下,您似乎鏈接到運行時的調試版本,分發鏈接到運行時調試版本的應用是不正常的.
Note that in this case you appear to be linking to the debug version of the runtime, it is not normal to distribute apps linked against the debug version of the runtime.
這篇關于由于未找到 MSVCP100D.dll,應用程序無法啟動,重新安裝應用程序可能會起作用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!