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

Is there an equivelant to 'AssemblyInfo.cs' in a Win32 DLL project?

I already looked at this topic, but I need the answer flipped around. How would I set the assembly information attributes* in a Win32 DLL?
David Anderson
  • 13,558
  • 5
  • 50
  • 76
7
votes
1 answer

Dynamically calling a dll and method with arguments

Basically I'm trying to call a dll by name, instantiate an object, then call a method by name in that dll. I'm getting an "Exception has been thrown by the target of an invocation." during the Method.Invoke. I'm fairly sure my problem is with the…
crlanglois
  • 3,537
  • 2
  • 14
  • 18
7
votes
2 answers

Finding a 3rd party QWidget with injected code & QWidget::find(hwnd)

I have a Qt Dll wich I inject into a third-party Application using windows detours library: if(!DetourCreateProcessWithDll( Path, NULL, NULL, NULL, TRUE, CREATE_DEFAULT_ERROR_MODE | CREATE_SUSPENDED, NULL, NULL, …
David Menard
  • 2,261
  • 3
  • 43
  • 67
7
votes
1 answer

Statically linking to libarchive on Windows with MinGW

I've been using libarchive in my project for some time now and it's working great, at the moment I am dynamically linking to it, so on Windows the libarchive.dll file has to present on the system. I would now like to statically link to the library…
oggmonster
  • 4,672
  • 10
  • 51
  • 73
7
votes
1 answer

Pass data of arbitrary type between VBA and dll

So I am working on an Excel Project that is going to load a C++ dll using VBA. What I'd like to do is to be able to pass an Excel range with no specific type (data can be numerical or categorical) to the C++ dll (The best way I can describe my Excel…
SMir
  • 650
  • 1
  • 7
  • 19
7
votes
2 answers

WriteProcessMemory to SYSTEM process with SeDebugPrivilege enabled. (C, Vista)

I'm interested in injecting DLLs into SYSTEM owned processes on my Vista machine. I'm going about this using the traditional method of VirtualAllocEx, WriteProcessMemory and CreateRemoteThread. However, because this will be operating on SYSTEM…
pcorey
  • 850
  • 2
  • 9
  • 14
7
votes
8 answers

Creating a DLL from a wrapped cpp file with SWIG

I am in the process of learning how to use SWIG on Windows. The following is my c++ code: /* File : example.cxx */ #include "example.h" #define M_PI 3.14159265358979323846 /* Move the shape to a new location */ void Shape::move(double dx,…
user1449530
  • 407
  • 2
  • 6
  • 10
7
votes
1 answer

Exposing std::vector over a dll boundary - best practice for compiler independence

Exposing STL containers over DLL boundaries is not a good idea, and generally not possible (see this answer for why, and this one about exposing a std::list over a dll boundary). I need to be able to pass data between DLL and EXE compiled with…
Phil H
  • 19,928
  • 7
  • 68
  • 105
7
votes
1 answer

Enumerate all installed versions of an assembly (in GAC)

Is it possible to enumerate all installed versions of an assembly in GAC using C#? For example I have the assembly named "My.Assembly". The assembly may come in various versions ("1.0.0.0", "2.3.4.5", "0.1.2.4", ...) and may be compiled for various…
Korexio
  • 483
  • 1
  • 7
  • 19
7
votes
1 answer

Can my 32 bit and 64 bit COM components co-reside on the same machine?

I have a 32 bit COM component that is used mostly by ASP, we also have the 64 bit version. The 64 bit version is functionally identical and it also uses the same ProgID (and as far as I know the same CLSID's etc). Can I install/regsvr the 64 bit…
Kev
  • 118,037
  • 53
  • 300
  • 385
7
votes
1 answer

Dllmain in DLL library in VC++

I am going through my project code base, which consits of libraries and applications. Some libraries are Dll's. Code is written in C++ for Windows using MS VS 2010. I taught for Dll we should write DllMain function which is entry point for the DLL…
venkysmarty
  • 11,099
  • 25
  • 101
  • 184
7
votes
2 answers

C++ dlls version number

Is it must that all the dlls created in C++ have a version number ? I have dlls in my machine but when i right click i am not able to see the version number. P.S : I have Win 7 installed.
Scorp
  • 237
  • 1
  • 3
  • 9
7
votes
7 answers

How can I resolve this? The unit type exists in two dll files

I am currently going through a tutorial using Visual Studio 11 beta. When trying to set the max length of a field value in one of my classes: [MaxLength(50)] public string LastName { get; set; } It errors out and wont let me compile because the…
Trevor
  • 16,080
  • 9
  • 52
  • 83
7
votes
1 answer

how to install libjpeg for windows?

I downloaded some code that make use of libjpeg, but no dlls in the source files are included, and I'm trying to make it compile / execute correctly. I am using VS2010: in my source files I have #include "jpeglib.h" and in Linker > Input >…
lezebulon
  • 7,607
  • 11
  • 42
  • 73
7
votes
1 answer

VS2010: Loading symbols from dlls very slow

I have a program which I am working on my Dell Laptop XPS 502X. At work, I usually have another monitor plugged in my DVI port and everything is fine. When I work from home, I only have the laptop screen. When I start the program in VS2010, it is…
Smash
  • 3,722
  • 4
  • 34
  • 54