Windows 7, 64 bit, DLL problems

This problem is related to missing the Visual Studio “redistributable package.” It is not obvious which one is missing based on the dependency walk, but I would try the one that corresponds with your compiler version first and see if things run properly: Visual Studio 2015 Visual Studio 2013 Visual Studio 2010 Visual Studio 2008 … Read more

How can I use a DLL file from Python?

For ease of use, ctypes is the way to go. The following example of ctypes is from actual code I’ve written (in Python 2.5). This has been, by far, the easiest way I’ve found for doing what you ask. import ctypes # Load DLL into memory. hllDll = ctypes.WinDLL (“c:\\PComm\\ehlapi32.dll”) # Set up prototype and … Read more

Error ASP 0177: 8007007e CreateObject fails for COM DLL

The advice below relates to both Server.CreateObject and CreateObject use in vbscript jscript vba The Web Server sections are specific to asp-classic but still worth reading. What Causes This error? Server.CreateObject Failed is caused most commonly when Web Applications are moved from one Web Server to another without an understanding of external COM components that … Read more

How to copy DLL files into the same folder as the executable using CMake?

I’d use add_custom_command to achieve this along with cmake -E copy_if_different…. For full info run cmake –help-command add_custom_command cmake -E So in your case, if you have the following directory structure: /CMakeLists.txt /src /libs/test.dll and your CMake target to which the command applies is MyTest, then you could add the following to your CMakeLists.txt: add_custom_command(TARGET … Read more

Embedding DLLs in a compiled executable

I highly recommend to use Costura.Fody – by far the best and easiest way to embed resources in your assembly. It’s available as NuGet package. Install-Package Costura.Fody After adding it to the project, it will automatically embed all references that are copied to the output directory into your main assembly. You might want to clean … Read more