Windows 7, 64 bit, DLL problems

前端 未结 14 754
故里飘歌
故里飘歌 2020-11-22 12:37

I have a problem with our executable. I\'m running this C++ 32-bit executable on my Windows 7 64-bit development box that also has all those Microsoft applications (Vis

相关标签:
14条回答
  • 2020-11-22 13:17

    I came here with this problem occurring, after trying a fresh Windows 7 OEM install, upgrading to Windows 10.

    After some searching of Microsoft forums and such I found the following solution which worked for me:

    Replace C:\Windows10Upgrade\wimgapi.dll with the one from C:\Windows\System32\wimgapi.dll

    0 讨论(0)
  • 2020-11-22 13:20

    Installation of SQL Server Management Studio 2014 on a freshly installed Windows 7 resolved this problem at our client after a two-day ridiculous battle.

    0 讨论(0)
  • 2020-11-22 13:21

    I just resolved the same problem.

    Dependency Walker is misleading in this case and caused me to lose time. So, the list of "missing" DLL files from the first post is not helpful, and you can probably ignore it.

    The solution is to find which references your project is calling and check if they are really installed on the server.

    @Ben Brammer, it is not important which three .ocx files are missing, because they are missing only for Leo T Abraham's project. Your project probably calls other DLL files.

    In my case, it was not three .ocx files, but missing MySQL connector DLL file. After installing of MySQL Connector for .NET on server, the problem disappeared.

    So, in short, the solution is: check if all your project references are there.

    0 讨论(0)
  • I solved the problem. When I registered the OCX files, I ran it with the Command Window that had been executed as an administrator.

    0 讨论(0)
  • 2020-11-22 13:28

    This solved the issue for me:

    Uninstall the Visual Studio 2010 redistributable package if you have it installed already, and then install Microsoft Windows 7 SDK.

    0 讨论(0)
  • 2020-11-22 13:29

    I just resolved the same problem with C++ Qt 5 and Windows 7 64 bits with MSCVC 2012.

    In the beginning I thought it was a MSVC/Windows DLL file problem, but as BorisP said, the problem was in my project dependencies. The key is "How to know your project dependencies in Qt 5?".

    As I didn't find any clear way to know it (Dependency Walker didn't help me a lot...), I followed next the "inverse procedure" that takes no more than 5 minutes and avoid a lot of headaches with DLL file dependencies:

    1. Compile your project and take the executable file to an empty folder: myproject.exe
    2. Try to execute it, It will retrieve an error (missing DLL files...).
    3. Now, copy all the DLL files from Qt (in my case they were in C:\Qt\Qt5.1.1\5.1.1\msvc2012_64_opengl\bin) to this folder.
    4. Try to execute again, it will probably works fine.
    5. Start to delete progressively and try every time your executable still works, trying to leave the minimum necessary DLL files.

    When you have all the DLL files in the same folder it is easier to find which of them are not valid (XML, WebKit, ... whatever..), and consequently this method doesn't take more than five minutes.

    0 讨论(0)
提交回复
热议问题