using libcurl without dll

There is no simple answer 🙂 Libcurl depends on other third party libs (it depends on binary distribution that you are using). As you get rid of DLL – you’ll have to link with corresponding third parties manually. Ok, so the first point is that you should not link to libcurl.lib as it binds you … Read more

How to build a DLL version of libjpeg 9b?

Published builds (static / dynamic) on [GitHub]: CristiFati/Prebuilt-Binaries – (master) Prebuilt-Binaries/LibJPEG. Like almost all of the nowadays software, LibJPEG is also hosted on [GitHub]: winlibs/libjpeg – libjpeg-9b. I downloaded it from both places, did a comparison and only few minor differences (out of which none in the source code) popped up. I’m going to explain … Read more

The name ‘ViewBag’ does not exist in the current context

I was having the same problem. Turned out I was missing the ./Views/Web.config file, because I created the project from an empty ASP.NET application instead of using an ASP.NET MVC template. For ASP.NET MVC 5, a vanilla ./Views/Web.config file contains the following: <?xml version=”1.0″?> <!– https://stackoverflow.com/a/19899269/178082 –> <configuration> <configSections> <sectionGroup name=”system.web.webPages.razor” type=”System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, … Read more

Using Windows DLL from Linux

I wrote a small Python module for calling into Windows DLLs from Python on Linux. It is based on IPC between a regular Linux/Unix Python process and a Wine-based Python process. Because I have needed it in too many different use-cases / scenarios myself, I designed it as a “generic” ctypes module drop-in replacement, which … Read more

How do I find out which dlls an executable will load?

dumpbin is a tool that comes with VC++. To see what DLLs a program will import: Open Visual Studio Menu Item Tools | Visual Studio Command prompt cd to folder containing executable dumpbin /dependents whatever.exe Dump of file whatever.exe File Type: EXECUTABLE IMAGE Image has the following dependencies: AIOUSB.DLL sqlite3.dll wxmsw293u_core_vc_custom.dll wxbase293u_vc_custom.dll KERNEL32.dll ole32.dll OLEAUT32.dll … Read more

DLL search on windows

Edit: As explained by Bob, this answer describes the Alternate Search Order, which is not what most applications would see. The full rules are quite complex. I don’t think I can summarize them here. Instead, read the Microsoft docs – https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order My original answer was: This MSDN article explains the default search order. I quote: … Read more

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