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
2 answers

Converting dll to jar

I'm trying to find a way to convert a dll to a jar file. I have a .net application that communicates with a java application. The core entities are .net objects which I have to duplicate manually in java. I've read about IKVM but it seems that it…
Dennis Nerush
  • 5,473
  • 5
  • 25
  • 33
7
votes
4 answers

System.IO.Compression.FileSystem.dll in c# program

I' like to use the dll System.IO.Compression.FileSystem.dll in my project the .net framework version is 4.5 and the os is 64. The problem is that the dll is not found. What is the solution?
Lamloumi Afif
  • 8,941
  • 26
  • 98
  • 191
7
votes
2 answers

compiled program cannot find freeglut.dll

I'm new to this site, and relatively new to programming. I've been doing some C++ programming for a while using Visual Studio 2010, and I wanted to get into OpenGL, so I bought the OpenGL Superbible to get started. I've gotten stuck on the second…
DJDragon430
  • 73
  • 1
  • 1
  • 3
7
votes
4 answers

How to pass and return objects to and from a DLL?

I need to return objects from a DLL made in Delphi, to an app made in Delphi, too. The objective is to do a subsystem that can be modify in the future without to modify the main app. So, I imagine developing the subsystem in a DLL is a (good??)…
DelphiProgrammer
  • 269
  • 6
  • 11
7
votes
2 answers

Passing record as a function result from Delphi DLL to C++

I am experiencing some very strange things right now. When I am passing a struct from C++ to a Delphi DLL as a parameter everything works fine. However, as soon as I want to receive a record as a result I either get wrong values or exceptions. I…
Henry
  • 727
  • 1
  • 6
  • 25
7
votes
10 answers

Decompiling code (language independent)

What software can be used to view the source code in a .dll file, irrespective of the programming language used for the source code?
Naruto
  • 9,476
  • 37
  • 118
  • 201
7
votes
4 answers

Convert void** pointer to equivalent Java type

I'm loading a C DLL from a program written in Java. I want to be able to call one of the methods from the DLL with this declaration : dll_function(const char* foo1, const char* foo2, const char* foo3, void** bar, size_t* bar2); How do I call this…
Guillaume Voiron
  • 1,785
  • 2
  • 15
  • 16
7
votes
3 answers

How to use a C++ dll in Unity3D?

I am aware of this similar question, but it does not respond to my problem. I have written two .dlls using Visual Studio 2010. One is in C++, and communicates with an SDK that was written in C++. The other is a C# wrapper for that C++ library, so…
Lee White
  • 3,649
  • 8
  • 37
  • 62
7
votes
3 answers

How to correctly reference a dll in Visual Studio 2010?

I have a solution that contains a C++ DLL project, and a C# project that will use this DLL (by using PInvoke). The dll is being built to the x64/Release folder in my solution folder, which makes sense, because that way the C# project doesn't have to…
Lee White
  • 3,649
  • 8
  • 37
  • 62
7
votes
3 answers

C++: Implement custom Main function

WinMain is a function that 'replaces' the default main entry point 'main'. The user can then define its main entry point like int WINAPI WinMain(...) { } How is this kind of encapsulation done? Well, most likely, at some point it looks like…
bytecode77
  • 14,163
  • 30
  • 110
  • 141
7
votes
2 answers

Does P/Invoke execute the DLL and then shut it down?

If I use C# to P/Invoke a certain DLL, will the actual C++ DLL be run for the duration of the call and then be shut down, destroying all used memory? Or will .NET take charge of the memory used by the C++ DLL in an unmanaged "heap" and give pointers…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
7
votes
4 answers

Can't reference a library project (DLL) because .lib file is missing

I'm trying to start a C++ game engine project. I don't have much knowledge of dll's and lib's but figured the engine itself would be a dll and I would have separate dll projects such as renderer, input, etc that would be used by the engine and the…
EvilWeebl
  • 689
  • 1
  • 8
  • 16
7
votes
1 answer

Unable to pass std::wstring across DLL

I've set up a project in Visual Studio 2010 to write unit tests against an existing MFC DLL. I'm using a single-header unit test framework, and linked to the MFC DLL's lib wrapper from the unit test project. I'm trying to construct a class that…
Bret Kuhns
  • 4,034
  • 5
  • 31
  • 43
7
votes
3 answers

How to reverse a DLL into C++ code?

I know it's impossible to reverse a dll into a c++ code so I would like to collect as much as possible details from it. It's not my dll, so I don't have the source code of course. Which program should I use?
Imri Persiado
  • 1,857
  • 8
  • 29
  • 45
7
votes
4 answers

How to call external dll function from java code

I need to call external DLL library function from Java code. I use Netbeans 7.2. My dll's functions are: Boolean isValid(string word) List getWords(String word) I'm following this example. But I don't know how declare my dll…
Temp Temp
  • 121
  • 1
  • 1
  • 3