Questions tagged [loadlibrary]
558 questions
9
votes
3 answers
Loadlibrary always return NULL
HINSTANCE hinstLib=LoadLibrary("C:\\mydll.dll");
I have no idea why I always get 0 in return after running that line of code.
Actually I have also another COM dll namely mydllCOM.dll that I already registered successfully with regsvr32 command. I…

user3462253
- 146
- 1
- 1
- 5
9
votes
3 answers
Plugin DLLs that depend on other DLLs
I am writing a DLL to plug into another (3rd party) application. The DLL will need to depend on another set of DLLs (for license reasons I cannot link statically).
I would like my DLL to be "xcopy-deployable" to any directory. I would also like not…

Rasmus Faber
- 48,631
- 24
- 141
- 189
9
votes
3 answers
How to reverse System.loadLibrary in Java
I am writing a JNI program and I want to unload the dll after i hava finished using it.
What can I do for this purpose? I couldn't find a unloadLibrary() method in the Javadoc.
user162809
8
votes
1 answer
LoadLibraryEx ignores side-by-side manifest
Does LoadLibraryEx function use side-by-side manifests? I have bar.dll with embedded SxS manifest, and that manifest describes version of this bar.dll, other dll file foo.dll has manifest that lists bar.dll as dependency, with specified version. But…

Ibraim Ganiev
- 8,934
- 3
- 33
- 52
8
votes
4 answers
Loading a dll from a dll?
What's the best way for loading a dll from a dll ?
My problem is I can't load a dll on process_attach, and I cannot load the dll from the main program, because I don't control the main program source. And therefore I cannot call a non-dllmain…

Stefan Steiger
- 78,642
- 66
- 377
- 442
8
votes
6 answers
Issue while loading a dll library file... java.lang.UnsatisfiedLinkError: Can't load library
While loading a dll file, I am getting the following exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
D:\Transliteration\rlpnc-3.1.0-sdk-ia32-w32-msvc80\rlp\bin\ia32-w32-msvc80\btrntjni.dll:
The system cannot find message…

Bhaskara Krishna Mohan Potam
- 45
- 1
- 3
- 9
8
votes
2 answers
LoadLibrary() fails to load DLL with manifest and private assembly
I am working on a Windows application (EXE) that uses multiple DLLs. Development is in VCExpress 2005 (VC 8.0), using C only.
Some of these DLLs are plug-ins/add-ons/extensions that are dynamically loaded using LoadLibrary according to a…

Twylite
- 81
- 1
- 2
8
votes
3 answers
System.loadLibrary does not work. UnsatisfiedLinkError for the second lib in chain
I have java program Client.class that uses cpp shared library libclient.so via JNI.
libclient.so is built as shared and uses cpp shared library libhttp.so.
libclient.so and libhttp.so are placed in folder /home/client/lib64
Client.class is placed in…

degratnik
- 830
- 2
- 9
- 19
8
votes
4 answers
How can I use complex.h for Android NDK?
I have native source code written in C that I would like to run on my Android device (Nexus 7). I already successfully did lots of research and online tutorials on running native code on Android using Android NDK. I gained quite some knowledge on…

Sam
- 314
- 3
- 8
8
votes
3 answers
C++: Manifests and dynamically loading DLLs from different directory
Long story of what I'm trying to achieve
I'm working on a program that dynamically loads DLLs as plugins. I'm compiling the program using Microsoft Visual C++ 2008. Still, let's assume that any Visual C++ version with which Qt works should be…

ZalewaPL
- 1,104
- 1
- 6
- 14
8
votes
2 answers
Calling C++ DLL from C++ works, but not from C#
I have a DLL called tccdvc.dll which is part of an SDK available here:
http://www.commell.com.tw/Download/Driver/Industrial%20Peripheral/Driver/MPX-885/MPX-885%20SDK%20(1.2)/SetupCOMMELL%20MPX-885_20100627.rar
The DLL was written in C++ and…

zarulad
- 143
- 5
7
votes
1 answer
C++ LoadLibrary ERROR_NOACCESS "Invalid access to memory location."
OK, so I have a situation in which I call LoadLibrary on a DLL that I wrote. This call to LoadLibrary returns error #998, or ERROR_NOACCESS "Invalid access to memory location."
The DLL in question uses MFC in one configuration, and not in another;…

KRyan
- 7,308
- 2
- 40
- 68
7
votes
3 answers
How to load a c++ dll file into Matlab
I have a C++ dll file that uses a lot of other c++ librarys (IPP, Opencv +++) that I need to load into matlab. How can I do this?
I have tried loadlibrary and mex. The load library does not work.
The mex finds the linux things (platform independent…

Rolf Anders
- 131
- 1
- 1
- 8
7
votes
1 answer
Can a process load two DLLs with exactly the same name?
Help interpreting MSDN:
Dynamic-Link Library Search Order
...
If a DLL with the same module name is already loaded in memory, the
system checks only for redirection and a manifest before resolving to
the loaded DLL, no matter which directory it…

Martin Ba
- 37,187
- 33
- 183
- 337
7
votes
1 answer
How to Unload DLL from memory in C?
How to unload DLL from memory. I used FreeLibrary but it is still loaded
HINSTANCE hGetProcIDDLL = LoadLibrary("path.dll");
f_funci func = (f_funci)GetProcAddress(hGetProcIDDLL, "method");
int x = func();
FreeLibrary(hGetProcIDDLL);
I used…

user7435875
- 107
- 1
- 1
- 5