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

Export function from DLL in Visual Studio 2010 using DEF

I inherited a huge C++ multi-project solution with many dynamic libraries but without any __declspec(dllexport) I learned that one does not necessarily have to insert any dllexport (would be much work) but that one can use a .def file in addition…
Finnfalter
  • 732
  • 2
  • 7
  • 22
7
votes
4 answers

Unmanaged C++ DLL's with same name coexisting in same process

Using Visual Studio c++ V10, I am trying to figure out how to build a DLL and resolve a DLL naming conflict. Here are the details. Company S ships a product called M.EXE. Assume that M.EXE is installed in \S\BIN\M.EXE. Company S statically links…
Irv
  • 540
  • 4
  • 13
7
votes
1 answer

Exception on receiving Assembly reference from another AppDomain

I am loading all DLLs from a specific "extensions" directory in a new AppDomain to get some Reflection related information out of those. This is what I'm trying: I created a new library AssemblyProxy in my solution which just has this class: public…
user1004959
  • 627
  • 6
  • 16
7
votes
3 answers

Delphi PChar to C++ const char*

I am trying to use a C++ dll from a native program. I am following the virtual method scenario as explained here Lets say my C++ function signature is of the form int Setup(const char* szIp, const char* szPort); And the corresponding delphi…
rptony
  • 1,024
  • 1
  • 12
  • 22
7
votes
3 answers

Call Metatrader MQL4/MQL5 function from imported DLL

I would like to call MQL4 or MQL5 function from my own imported DLL in Metatrader. Is it possible?
Michal Zmuda
  • 5,381
  • 3
  • 43
  • 39
7
votes
1 answer

Is there any C++ lightweight cross-platform file system library?

I need a lightweight cross-platform file system library for game development. I want to ship my games on Windows, Linux and Mac. As far as I know, using dirent.h works on all three platforms. However, I wanted to know if a library that is simpler to…
Vittorio Romeo
  • 90,666
  • 33
  • 258
  • 416
7
votes
1 answer

PHP startup mongo: Unable to initialize module

I am currently Using xampp for PHP. I installed *mongo_db(1.8.5)* in my system and also installed xampp-1.8.1-VC9 in my system. In order to configure PHP for mongoDB, I have downloaded *php_mongo.dll*(tried both VC9 thread safe and non-thread safe)…
user1518659
  • 2,198
  • 9
  • 29
  • 40
7
votes
2 answers

How to compile PHP DLL extension x86 x64

I am trying to set up some sort of a nightly build environment that would compile both a x64 and x86 version of a PHP DLL extension. I have followed this guide to set up the environment and build the extension and it works fine. At the moment I…
Nikolaos Dimopoulos
  • 11,495
  • 6
  • 39
  • 67
7
votes
4 answers

Putting classes in a DLL?

Is it possible to put some classes into a DLL? I have several custom classes in a project I am working on and would like to have them put in a DLL and then accessed in the main application when needed, plus if they are in a DLL I can reuse these…
user1175743
7
votes
2 answers

SharePoint 2010 development without local server installation

I'd like to develop SharePoint 2010 web parts without local SharePoint installation. I mean I don't want to install SharePoint server because I don't need it and it's so huge. I found some questions about this, but I still can't get it working. I…
Stongkin
  • 125
  • 1
  • 5
7
votes
2 answers

Maintainability of a python wrapping of a C library

I have a poorly designed and big (> 300 public functions, >200 numeric constants defined with #define in the header file) that I have to wrap in Python. I have the dll and the h file. The library is updated yearly, till now in a backwards compatible…
7
votes
2 answers

How to check if I need to install VCRedist?

My program contains several dlls which depend on MSVCP100.dll and MSVCR100.dll, in Win7 my program runs without any problem, however in Win8 it failed to locate these two dlls. I notice that in Win8 there is no VCRedist installed by default, so…
Deqing
  • 14,098
  • 15
  • 84
  • 131
7
votes
1 answer

Max length of function names in a DLL

If I export functions in a DLL, is there a limit on the length of the function names?
Uffe Kousgaard
  • 709
  • 1
  • 5
  • 14
7
votes
3 answers

How can I create a DLL in C using Visual Studio?

How can I create a DLL in C using Visual Studio, for a program written in C? Would really appreciate if anyone could post any direct or forum-page-link for the same.
Achilles
  • 91
  • 1
  • 2
  • 4
7
votes
4 answers

C# load DLL from different folder?

I have a C# project that contains 1 EXE and about 7 DLLs. What I would like to have is a folder beside the EXE called "Library" (or something similar) that contains all the DLLs so that it is a bit more organized and looks better for the end user. I…
Landin Martens
  • 3,283
  • 12
  • 43
  • 61