DLL and LIB files – what and why?

There are static libraries (LIB) and dynamic libraries (DLL) – but note that .LIB files can be either static libraries (containing object files) or import libraries (containing symbols to allow the linker to link to a DLL). Libraries are used because you may have code that you want to use in many programs. For example … Read more

Why do 64-bit DLLs go to System32 and 32-bit DLLs to SysWoW64 on 64-bit Windows?

I believe the intent was to rename System32, but so many applications hard-coded for that path, that it wasn’t feasible to remove it. SysWoW64 wasn’t intended for the dlls of 64-bit systems, it’s actually something like “Windows on Windows64”, meaning the bits you need to run 32bit apps on a 64bit windows. This article explains … 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