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
7
votes
1 answer

Assembly binding and redirect

I have an EXE that reference a DLL - for this example I'll call it TestDLL.dll. The EXE is written in C# and the DLL is written in VB .Net. I created a demo assembly version of the DLL - for example - TestDLL.dll version 1.0.0.0. I want to compile…
GG Hendrix
  • 73
  • 1
  • 4
7
votes
2 answers

How to embed dll from "class project" into my project in vb.net

I have a standard "class library" project with a set of classes that I use to import in almost all my new projects. The way I work is creating a new Solution with an empty project, which is my main project, and then I add to the solution the…
Alex
  • 73
  • 1
  • 1
  • 4
6
votes
3 answers

Swap out DLL while in use

I am building a plugin-type system with each plugin represented as a DLL. I would like to be able to reload them without stopping the main application. This means that they must be loaded at runtime, without pre-built links between them (do a…
user901037
6
votes
1 answer

RegAsm dll no types registered

I am attempting to register a .dll using RegAsm. It is a .NET 2.0 dll. All classes are public and ComVisible is true. I am still getting the RA0000 : No types were registered error. Below is the code and assemblyinfo. Any help would be great,…
steventnorris
  • 5,656
  • 23
  • 93
  • 174
6
votes
2 answers

Unresolved external symbol when creating a DLL

A friend of mine gets a bunch of error when creating a DLL. Visual Studio complains about unresolved external symbols. I am mainly an Unix user so I might be mistaken there. On Unix, when you create a static library (an archive), it does not do much…
qdii
  • 12,505
  • 10
  • 59
  • 116
6
votes
2 answers

How to use external Dll in Air Native Extension?

The structure of my ANE file looks like this: ExtensionDll.dll DllUsedByExtensionDll.dll extension.xml mimetype catalog.xml library.swf If ExtensionDll.dll uses the…
BlueWanderer
  • 2,671
  • 2
  • 21
  • 36
6
votes
1 answer

How to enumerate modules in python 64bit

I have a block of code that works great in 32bit, and I'm trying to make it work in 64bit as well. When running the process, the sizeof(structure) seems to be returning invalid options, and the structure isn't being populated properly for 64bit. …
lephino
  • 127
  • 2
  • 8
6
votes
5 answers

DLL size in memory & size on the hard disk

Is there a relationship between DLL size in memory and size on the hard disk? This is because I am using Task Manager extension (MS), and I can go to an EXE in the list and right click -> Module, then I can see all the DLLs this EXE is using. It has…
RoundPi
  • 5,819
  • 7
  • 49
  • 75
6
votes
2 answers

How to check a DLL if a function exists?

I'm working on something which dynamically loads specially formulated DLL's. I need to be able to check the DLL and make sure all the expected functions exist before I consider using this DLL. If it's missing some certain functions, I should not try…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
6
votes
1 answer

Register and unregister a DLL in a Windows Setup Project

I have couple of dll files that need to be registered/unregistered when a Windows installer is installed/uninstalled respectively. I tried the following - Created a .bat file to register the dll. The issue is I am not able to add a .bat file using…
user591410
  • 3,051
  • 5
  • 21
  • 30
6
votes
2 answers

Build a .NET dll to WP7

How can I port a C# dll to WP7? I have the .dll source code successfully building on desktop but when I try to reference the dll on a WP7 project I get the following error: Reference cannot be added to c:\path\to\my.dll because it was not built…
dcarneiro
  • 7,060
  • 11
  • 51
  • 74
6
votes
4 answers

Compiling a Fortran .dll on Windows 7 (for free)?

My boss just asked me to integrate his bosses old Fortran code into a project (Java) I'm working on. The code was written in the 90s, so I imagine it'll still compile, so rather than re-write it, I'm hoping I can just call the functions from a .dll.…
Chad Mourning
  • 608
  • 2
  • 12
  • 25
6
votes
2 answers

Where Can I Get libgcc_s_dw2-1.dll?

The programme I have written uses SFML but fails when run because libgcc_s_dw2-1.dll is missing. I'm using tdm-gcc and can't find the file anywhere on my computer and re-install doesn't help and a simple hello world programm works fine so I'm not…
Ell
  • 4,238
  • 6
  • 34
  • 60
6
votes
5 answers

Unable to load DLL in C#

how to load a dll in a c# project error: Unable to load DLL 'Reader.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) code sample: [DllImport("Reader.dll")] public static extern byte OpenReader(ref IntPtr hCom,…
john
  • 1,282
  • 1
  • 17
  • 30
6
votes
2 answers

How can I import dll of a C++ class inside a namespace

I read some documents which gives simple examples on functions compatible with C. __declspec(dllexport) MyFunction(); I'm okey with that. I write a small application uses the functions of this dll. I used explicit linking with LoadLibrary()…
qwerty
  • 2,065
  • 2
  • 28
  • 39
1 2 3
99
100