Questions tagged [dll]

A dynamic-link library (DLL) is a module that contains functions and data that can be used by another module (application or DLL). It is Microsoft's implementation of the shared library concept in the Microsoft Windows and OS/2 operating systems.

A dynamic-link library (also written without the hyphen), or DLL, is Microsoft's implementation of the shared library concept in the Microsoft Windows and OS/2 operating systems. This type of library usually has the file extension DLL, OCX (for a library containing ActiveX controls), or DRV (for a legacy system driver). The file formats for DLLs are the same as for Windows EXE files — that is, Portable Executable (PE) for 32-bit and 64-bit Windows, and New Executable (NE) for 16-bit Windows. As with EXEs, DLLs can contain code, data, and resources, in any combination. In the broader sense of the term, any data file with the same file format can be called a resource DLL. Examples of such DLLs include icon libraries

A DLL is a library that contains code and data that can be used by more than one program at the same time. For example, in Windows operating systems, the Comdlg32 DLL performs common dialog box-related functions. Therefore each program can use the functionality that is contained in this DLL to implement an Open dialog box. This helps promote code reuse and efficient memory usage.

By using a DLL, a program can be modularized into separate components. For example, an accounting program may be sold by module. Each module can be loaded into the main program at run time if that module is installed. Because the modules are separate, the load time of the program is faster, and a module is only loaded when its functionality is requested.

25858 questions
197
votes
10 answers

How to view DLL functions?

I have a DLL file. How can I view the functions in that DLL?
sumit
  • 1,971
  • 2
  • 12
  • 3
175
votes
10 answers

How can I specify a [DllImport] path at runtime?

In fact, I got a C++ (working) DLL that I want to import into my C# project to call it's functions. It does work when I specify the full path to the DLL, like this : string str =…
Jsncrdnl
  • 3,005
  • 5
  • 28
  • 43
174
votes
9 answers

PHP 7: Missing VCRUNTIME140.dll

I have an error when I start PHP 7 on Windows. When I run php on the command line, it returns a message box with system error: The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this…
Félix Desjardins
  • 3,223
  • 3
  • 21
  • 36
173
votes
7 answers

Partial classes in separate dlls

Is it possible to have two parts (same namespace, same class name) to a partial class in separate DLLs?
Brad
  • 15,361
  • 6
  • 36
  • 57
166
votes
23 answers

.Net picking wrong referenced assembly version

I just copied an existing project to a brand new machine to start developing on it and have run into a problem with the version of one of my referenced assemblies (a telerik DLL as it happens). The project originally referenced an older version of…
Michael La Voie
  • 27,772
  • 14
  • 72
  • 92
165
votes
13 answers

Where to find "Microsoft.VisualStudio.TestTools.UnitTesting" missing dll?

I am getting following error in my C# visual studio project: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) I also tried to find the microsoft.dll file but couldn't…
Amit Pal
  • 10,604
  • 26
  • 80
  • 160
164
votes
7 answers

How do I set the path to a DLL file in Visual Studio?

I developed an application that depends on a DLL file. When I debug my application, the applicationwould complain that: "This application has failed to start because xxx.dll was not found." So I have to copy the DLL file into the same directory as…
sivabudh
  • 31,807
  • 63
  • 162
  • 228
160
votes
16 answers

Equivalent to 'app.config' for a library (DLL)

Is there an equivalent to app.config for libraries (DLLs)? If not, what is the easiest way to store configuration settings that are specific to a library? Please consider that the library might be used in different applications.
Louis Rhys
  • 34,517
  • 56
  • 153
  • 221
152
votes
20 answers

Unable to load DLL (Module could not be found HRESULT: 0x8007007E)

I have a dll library with unmanaged C++ API code I need to use in my .NET 4.0 application. But every method I try to load my dll I get an error: Unable to load DLL 'MyOwn.dll': The specified module could not be found. (Exception from HRESULT:…
Ingimar Andresson
  • 1,865
  • 3
  • 15
  • 20
138
votes
15 answers

How do I set the version information for an existing .exe, .dll?

As part of our build process I need to set the version information for all of our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not. I want to be able to apply the following…
Carl
  • 2,483
  • 4
  • 28
  • 30
136
votes
16 answers

Java Error opening registry key

I get this error when I try to do anything with Java in command prompt: Error opening registry key 'Software\JavaSoft\Java Runtime Environment.3' Error: could not find Java.dll Error: could not find Java 2 Runtime Environment I did screw around…
gFu
  • 1,579
  • 2
  • 11
  • 12
133
votes
12 answers

How do I determine the dependencies of a .NET application?

How do I determine the dependencies of a .NET application? Does Dependency Walker work with managed apps? I've downloaded the latest and tried profiling the app, but it just exits without much of an explanation. If it doesn't work with .NET, then is…
Brian Stewart
  • 9,157
  • 11
  • 54
  • 66
130
votes
24 answers

ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL's are there

I have a situation very much like the one at Error "ImportError: DLL load failed: %1 is not a valid Win32 application", but the answer there isn't working for me. My Python code says: import cv2 But that line throws the error shown in the title of…
LarsH
  • 27,481
  • 8
  • 94
  • 152
128
votes
8 answers

How to make Visual Studio copy a DLL file to the output directory?

I have a Visual Studio C++ project that relies on an external DLL file. How can I make Visual Studio copy this DLL file automatically into the output directory (debug/release) when I build the project?
Mat
  • 1,283
  • 2
  • 9
  • 5
126
votes
12 answers

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

We use CMake for generating the Visual Studio files of our sources in our SVN. Now my tool requires some DLL files to be in the same folder as the executable. The DLL files are in a folder alongside the source. How can I change my CMakeLists.txt…
Mat
  • 4,281
  • 9
  • 44
  • 66