Answered by:
Unable to load native DLL.

Question
-
We have a problem with a third party native code dll:
Unable to load DLL 'ThirdParty.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E).
It looks like that some dependencies are missing.
We do have a workaround. It could be loaded successfully if we compile it with some project settings change:
1. Change the property “Runtime Library” from “Multi-threaded DLL(/MD)” to “Multi-threaded(/MT)
2. Add msvcrt.lib to “Ignore Specific Default Libraries” property
The problem is that the source code usually comes with a long delay so we would like to find a possibility to use binaries.
Any suggestions?
Thank you.Friday, September 19, 2014 7:11 PM
Answers
-
Use Dependecywalker tool or Process Expolrer to find out which dependent dll is not present on your machine, it looks like you have some runtime dependecy
use the /MD switch and install the correct Runtime and your issue should be resolved
check this link for more information
- Proposed as answer by May Wang - MSFT Monday, September 22, 2014 5:58 AM
- Marked as answer by May Wang - MSFT Thursday, October 2, 2014 9:09 AM
Saturday, September 20, 2014 6:36 AM
All replies
-
What specific DLL are you using, it may be obsolete and need replacement, likely it was make with an earlier SKU of Visual Studio
the general way to call a library is with LoadLibrary()
eg
LoadLibrary('ThirdParty.dll');
however if you are experiencing problems, you may need to find a new version that is designed for your SKU of Visual Studio
http://msdn.microsoft.com/en-ca/library/windows/desktop/ms684175(v=vs.85).aspx
Corsair Carbide 300R with TX850V2
Asus M5A99FX PRO R2.0 CFX/SLI
AMD Phenom II 965 C3 Black Edition @ 4.0 GHz
G.SKILL RipjawsX DDR3-2133 8 GB
EVGA GTX 660 Ti FTW Signature 2 (GK104 Kepler)
Asus PA238QR IPS LED HDMI DP 1080p
ST2000DM001 & Windows 8.1 Professional x64
Microsoft Wireless Desktop 2000 & Wacom Bamboo CHT470M
Place your rig specifics into your signature like I have, makes it 100x easier to understand!
Hardcore Games Legendary is the Only Way to Play!- Edited by Barrister and Solicitor Friday, September 19, 2014 7:21 PM
Friday, September 19, 2014 7:19 PM -
Use Dependecywalker tool or Process Expolrer to find out which dependent dll is not present on your machine, it looks like you have some runtime dependecy
use the /MD switch and install the correct Runtime and your issue should be resolved
check this link for more information
- Proposed as answer by May Wang - MSFT Monday, September 22, 2014 5:58 AM
- Marked as answer by May Wang - MSFT Thursday, October 2, 2014 9:09 AM
Saturday, September 20, 2014 6:36 AM