Questions tagged [loadlibrary]

558 questions
7
votes
3 answers

Load a DLL with dependencies in Python

I have proj1.dll that has a dependency to another DLL, proj2.dll. I compiled proj1.dll against the import library that was output by the compiler when compiling proj2.dll in VS2013. I also exported the public functions I am interested in using. So…
Righteous Mullet
  • 174
  • 1
  • 13
7
votes
8 answers

Function pointers and unknown number of arguments in C++

I came across the following weird chunk of code.Imagine you have the following typedef: typedef int (*MyFunctionPointer)(int param_1, int param_2); And then , in a function , we are trying to run a function from a DLL in the following way: LPCWSTR…
Emil D
  • 1,864
  • 4
  • 23
  • 40
7
votes
2 answers

Java web application cannot use native library (.so)

Technical summary: I'm developing a Java web service deployed on GlassFish v3, running on CentOS 5. My web service uses functionality provided by a native library (.so) . The native library works fine, however I am not having much luck in…
water-sparks
  • 93
  • 1
  • 4
7
votes
2 answers

0xC0000005: Access violation executing location 0x00000000

I'm writing an MFC project that try to call a function in the DLL which will return some information in a string. The function in the DLL is as follows: int GetInfo(char* Info) The function will return 0 if success. Information will be returned in…
user2845698
  • 71
  • 1
  • 1
  • 2
7
votes
3 answers

LoadLibraryExW() fails, last error is ERROR_MOD_NOT_FOUND, but no missing dependencies?

A customer is using our dll which is creating a child process which uses an open source library, which ultimately fails because of a call to LoadLibraryExW(), the last error returned is ERROR_MOD_NOT_FOUND. This occurs on WinXP 32-bit, but not on…
JosephA
  • 1,187
  • 3
  • 13
  • 27
7
votes
6 answers

Catching LoadLibrary() errors gracefully

I'm working on a piece of C++ software which runs on all Windows versions between Windows XP and Windows Vista. In my code, I developed a DLL which links against a standard library (the Qt library). Once my software is deployed, it's not unusual…
Frerich Raabe
  • 90,689
  • 19
  • 115
  • 207
6
votes
2 answers

How to check a DLL if a function exists?

I'm working on something which dynamically loads specially formulated DLL's. I need to be able to check the DLL and make sure all the expected functions exist before I consider using this DLL. If it's missing some certain functions, I should not try…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
6
votes
2 answers

Java System.loadLibrary("m") fails on AIX 6.1

On AIX 6.1 ppc64, in order to load libm.a, our application uses the System.loadLibrary("m"). Or it fails with an error message the module has invalid magic number According to IBM documentation, this can happen when there is a mismatch between 32…
6
votes
2 answers

C++ class to wrap loadlibrary?

I was thinking it would be cool to have a few classes to wrap around LoadLibrary and GetProcAddress, Library and Function respectively. As I was thinking about this I'm not sure its possible. Here is what I'm thinking: Library class: class…
David
  • 692
  • 8
  • 21
6
votes
0 answers

LoadLibrary API Fails with 998 (ERROR_NOACCESS)

The API LoadLibrary() fails with my MFC application when run over a Windows 7 64-bit PC. It returns error 998 for a specific DLL. This DLL is built over a 32-bit machine. But no issues to load other DLLs. I have tried excluding this MFC application…
njohn
  • 81
  • 6
6
votes
5 answers

Android load native library

I'm trying to load a library I built with the standalone NDK toolchain. I built libGLmove.so and placed it in libs/armeabi of my Eclipse project However, the call to System.loadLibrary("GLmove") throws an UnsatisfiedLinkError Any ideas as to how to…
Prime
  • 4,081
  • 9
  • 47
  • 64
6
votes
3 answers

Error "LoadLibrary failed with error 126: The module could not be found" when launching Spyder IDE through VPN

Here's what happens: Using a Macbook Pro, I use the Microsoft Remote Desktop Connection application to connect to my work computer, which is a Windows 10 machine If I try to launch Spyder on my work computer, I get this error: Load Library…
Darren C.
  • 101
  • 1
  • 1
  • 6
6
votes
3 answers

Load Dll multiple times to allow multi threading in .Net

My .Net program uses a fortran Dll to perform a maths function (Arpack, solves eigen modes). I believe the fortran contains static varibles and generally isn't thread safe. Also it's very complicated and would probably take a lot of hard work to…
Euan
  • 63
  • 1
  • 3
6
votes
3 answers

Impact of Microsoft Security Advisory (2269637) on .NET coding

Microsoft released Security Advisory (2269637) Insecure Library Loading Could Allow Remote Code Execution. The note refers to a tool that will help to detect this problem and programming guidelines on Dynamic-Link Library Security. How do these…
Bernard Vander Beken
  • 4,848
  • 5
  • 54
  • 76
6
votes
2 answers

How to prevent a specific DLL from loading into my process

I think I have researched this pretty thoroughly and I have not found an acceptable answer. First the broad strokes: Windows 8.1, Visual Studio 2013. Although, I don't think these are important. Problem as follows. The application I am writing…
DGehlhaar
  • 111
  • 2
  • 8
1 2
3
37 38