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

importing a lib file using visual studio

I am trying to import a file as below: #import "francais.dll" It says to me that it cannot open source file "C:/xxxx/Proj/Release/francais.tlh" The Library file is existing in Proj. How to solve that?
MelMed
  • 1,702
  • 5
  • 17
  • 25
7
votes
2 answers

"Always Copy" solution content (DLLs) to executable directory root

By way of background, I'm trying to get one of the Emgu CV examples working. It is the Motion Detection example mentioned in the answer to "Looking for a function for motion detection on emgucv" To get the example code working I need to add…
dumbledad
  • 16,305
  • 23
  • 120
  • 273
7
votes
3 answers

C# and Lua -- Current Options?

I created an application that uses the Mono implementation of LuaInterface, and it works beautifully without any hitches on Linux. I can't get LuaInterface to work with the Windows version of my application at all. I've spent two solid days trying…
cmark89
  • 247
  • 2
  • 9
7
votes
0 answers

Output the LIB file in a different place than the DLL with Visual Studio

When I build my DLL with Microsoft Visual Studio (2012), apart from the .dll file I also get the .lib file along with an .exp file. They are created in the same directory as the .dll but I want the .lib to go to another directory. Can I change it…
ali
  • 10,927
  • 20
  • 89
  • 138
7
votes
2 answers

Loading an EXE as a DLL, local vftable

I have an exe named test.exe which is usually used as a stand-alone application. I want to use this exe as a module (a dll) inside another application, app.exe. The code in test.exe does something really simple like: void doTest() { MyClass…
shoosh
  • 76,898
  • 55
  • 205
  • 325
7
votes
2 answers

Register DLL/OCX in InnoSetup

I have a DLL and OCX pack then I've decided to make an installer. This is what I have: ArchitecturesInstallIn64BitMode=x64 [Files] Source: {syswow64}\*; DestDir: {syswow64}; Flags: onlyifdoesntexist Source: {sys}\*; DestDir: {sys}; Flags:…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
7
votes
2 answers

how to add assembly DocumentFormat.OpenXml.Wordprocessin in visual studio

I want to read a doc file and do some operation and I found a code, but it has asking following "WordprocessingDocument" namespace.Has anyone know from where I can find this assembly.please dont sent me a download link for .dll file because it not…
Aruni Godage
  • 907
  • 4
  • 12
  • 17
7
votes
2 answers

How to use C# function in Java using JNA lib

I've spent many hours trying to use a C# function inside my Java Application but had no success... I wrote the following lib in C#: public class Converter { public Converter() { } public bool ConvertHtmlToPdf(String directoryPath) …
Victor Laerte
  • 6,446
  • 13
  • 53
  • 102
7
votes
1 answer

Why would I rather use a native dll or com server to call Delphi code from C#?

We are on the verge of writing a C# web service that will expose functionality contained in a native Delphi GUI app. Why would I choose to wrap the Delphi code in a native dll and why would I want to wrap it in a COM server? In other words: what…
Marjan Venema
  • 19,136
  • 6
  • 65
  • 79
7
votes
2 answers

How to call a webservice method for testing, e.g. from a browser

There is a dll webservice (made with Delphi) that has a method called List which returns a list of strings (widestring). Is there any method for calling that service without having to write a client application for consuming it?. Ex.:…
NizamUlMulk
  • 386
  • 1
  • 4
  • 21
7
votes
3 answers

Linking lots of .libs to make a DLL: unresolved external symbol _DllMainCRTStartup

I'm performing the (terrifying) task of building LLVM 3.3 on windows and I have got to the stage where I have a load of LLVM*.lib files. I want to link them together to one huge shared DLL but am struggling (this is my first time linking stuff on…
Callum Rogers
  • 15,630
  • 17
  • 67
  • 90
7
votes
2 answers

How to configure FastMM to detect memory leak in a dll

I can't figure out how to detect memory leaks in a statically or even dynamically linked dll. I just want to detect the leaks in the dll, and I don't want to share the memory manager between the dll, and the app. Additionally the dll is linked with…
balazs
  • 5,698
  • 7
  • 37
  • 45
7
votes
1 answer

Static .lib required for compiling library is also required for library users?

I've been working on a Haskell library package which requires a custom .dll and .lib on Windows to talk to some OS APIs. The .lib is linked into the library with the extra-libraries field and the DLL is installed in the cabal package directory with…
Tom Savage
  • 3,172
  • 4
  • 31
  • 31
7
votes
2 answers

C++ Load DLL From a Subdirectory?

I'm new to the "hidden/dark places" of C++ and I was wondering how to load a .dll file from a different directory or a sub-directory inside the one where my current executable is running Ex: ./MyAppDirectory /MyApp.exe /SomeDLL.dll …
SLC
  • 2,167
  • 2
  • 28
  • 46
7
votes
7 answers

How can I return a PChar from a DLL function to a VB6 application without risking crashes or memory leaks?

I have to create a DLL which is used by a VB6 application. This DLL has to provide several functions, some of them must return strings. This is the VB6 declaration: Declare Function MyProc Lib "mylib.dll" (ByVal Param As String) As String And this…
Daniel Rikowski
  • 71,375
  • 57
  • 251
  • 329