Missing dlls on 64 bit Win

后端 未结 2 1172
清歌不尽
清歌不尽 2021-01-02 12:50

I have a .net application that uses some vc++ compiled Win32 dlls. It works great on a 32 bit Win, but on 64 bit there is a problem: \"Unable to load DLL \'xyz\': The specif

相关标签:
2条回答
  • 2021-01-02 13:41

    The whole process should be 32 or 64 bit. If you cannot compile all dependency libraries in 64 bit, you need to run .NET project in 32 bit. To do this, create x86 configuration (default is Any CPU) and build .NET project in this configuration.

    You also need to install VC++ 2010 redistributable package on destination computer, with correct bitness, in your case - x86. This package can be downloaded from Microsoft WEB site.

    If your program has installation package, VC++ redistributable should be added to it as single file or as merge modules.

    0 讨论(0)
  • 2021-01-02 13:45

    As ALex Farber noted, you have to install some runtime dlls on the target machine:

    • The .NET runtime with the right version, here the 4.0,
    • Visual Studio redistributable package (I'm not sure of this one, it should be for C++ applications only but may be worth a try if .NET is not enough)
    0 讨论(0)
提交回复
热议问题