Skip to main content

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.

dll
729 votes
18 answers
518k views

Embedding DLLs in a compiled executable

Is it possible to embed a pre-existing DLL into a compiled C# executable (so that you only have one file to distribute)? If it is possible, how would one go about doing it? Normally, I'm cool with ...
Merus's user avatar
  • 8,956
137 votes
13 answers
129k views

How to copy DLL files into the same folder as the executable using CMake?

We use CMake for generating the Visual Studio files of our sources in our SVN. Now my tool requires some DLL files to be in the same folder as the executable. The DLL files are in a folder alongside ...
Mat's user avatar
  • 4,431
10 votes
4 answers
44k views

Python Ctypes - loading dll throws OSError: [WinError 193] %1 is not a valid Win32 application

I have tried to run an exemple of a python code that gets a function from a library using ctypes. The exemple can be found here. I followed the instruction and beside one minor modification, I have ...
Frédéric Girard's user avatar
281 votes
12 answers
459k views

How to check for DLL dependency?

Sometimes when I'm doing a little project I'm not careful enough and accidentally add a dependency for a DLL that I am not aware of. When I ship this program to a friend or other people, "it doesn't ...
orlp's user avatar
  • 115k
231 votes
6 answers
505k views

How can I use a DLL file from Python?

What is the easiest way to use a DLL file from within Python? Specifically, how can this be done without writing any additional wrapper C++ code to expose the functionality to Python? Native Python ...
Tom Hennen's user avatar
  • 4,844
7 votes
1 answer
27k views

Error ASP 0177: 8007007e CreateObject fails for COM DLL

We have been trying to install a COM DLL on a new server. The interface is Classic ASP. The Map Connector DLL seems to be the problem but that is as far as I am able to get. We are unable to get the ...
Karen Raymond-Hart's user avatar
283 votes
14 answers
343k views

Windows 7, 64 bit, DLL problems

I have a problem with our executable. I'm running this C++ 32-bit executable on my Windows 7 64-bit development box that also has all those Microsoft applications (Visual Studio 2008 + 2010, TFS, ...
tlvs's user avatar
  • 2,865
130 votes
24 answers
501k views

ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL's are there

I have a situation very much like the one at Error "ImportError: DLL load failed: %1 is not a valid Win32 application", but the answer there isn't working for me. My Python code says: import ...
LarsH's user avatar
  • 27.8k
127 votes
4 answers
41k views

How do I safely pass objects, especially STL objects, to and from a DLL?

How do I pass class objects, especially STL objects, to and from a C++ DLL? My application has to interact with third-party plugins in the form of DLL files, and I can't control what compiler these ...
cf-'s user avatar
  • 8,818
335 votes
37 answers
453k views

System.MissingMethodException: Method not found?

Previous working asp.net webforms app now throws this error: System.MissingMethodException: Method not found The DoThis method is on the same class and it should work. I have a generic handler as ...
user603007's user avatar
  • 11.7k
77 votes
2 answers
90k views

How to make a JAR file that includes DLL files?

I bought a third-party Java library which includes a JAR file and two DLL files. I wrote my own Java program which invoke the third-party JAR file. Now my question is how can I package all my code ...
Just a learner's user avatar
114 votes
4 answers
182k views

Exporting functions from a DLL with dllexport

I'd like a simple example of exporting a function from a C++ Windows DLL. I'd like to see the header, the .cpp file, and the .def file (if absolutely required). I'd like the exported name to be ...
Aardvark's user avatar
  • 8,563
157 votes
21 answers
532k views

Unable to load DLL (Module could not be found HRESULT: 0x8007007E)

I have a dll library with unmanaged C++ API code I need to use in my .NET 4.0 application. But every method I try to load my dll I get an error: Unable to load DLL 'MyOwn.dll': The specified module ...
Ingimar Andresson's user avatar
115 votes
3 answers
286k views

Dynamically load a function from a DLL

I'm having a little look at .dll files, I understand their usage and I'm trying to understand how to use them. I have created a .dll file that contains a function that returns an integer named funci()...
user avatar
88 votes
5 answers
64k views

Generate manifest files for registration-free COM

I have some applications (some native, some .NET) which use manifest files so that they can be deployed in complete isolation, without requiring any global COM registration. For example, the ...
Wim Coenen's user avatar
  • 66.5k

15 30 50 per page
1
2 3 4 5
220