Questions tagged [loadlibrary]

558 questions
0
votes
1 answer

usage of android native library(.so)

I have a question regarding android application programming. Q1. can I make a game with *.so file? and just let android part load the so file? Q2. what happens to the system when I load the so file in android app? System.loadLibrary("mylib"); is…
daehee
  • 5,047
  • 7
  • 44
  • 70
0
votes
2 answers

VC++-MFC : LoadLibrary returns invalid handle 0x10000000

I am unable to load my test.dll (in VC++ - MFC) using LoadLibrary() API. I get error code 126 (Module not found)using GetLastError(). By dependency walker I have come to know that my test.dll depends on "xerces-c_2_7.dll" and "Xalan-C_1_10.dll".…
user196614
  • 243
  • 1
  • 6
  • 15
0
votes
2 answers

LoadLibraryW doesn't work while LoadLibraryA does the job

I have written some sample program and DLL to learn the concept of DLL injection. My injection code to inject the DLL to the sample program is as follows (error handling omitted): std::wstring…
Etan
  • 17,014
  • 17
  • 89
  • 148
0
votes
1 answer

Would I need specific permissions if my program is copying a dll file to the temp directory?

Question: I'd like to know if I would need to ask for specific permissions and/or do something extra to make it "trustworthy" in case my program copies a dll file multiple times to the temp directory. If I do this, would the program be picked up as…
hattenn
  • 4,371
  • 9
  • 41
  • 80
0
votes
1 answer

0xC0000005: Access violation writing location 0x00000000

I have a weird problem in building my debug project. I have searched the web but unfortunately I have not found any clue yet. I'm trying to load a dll in my console application project. My dll has several functions and I just want to call FUNC1 to…
A23149577
  • 2,045
  • 2
  • 40
  • 74
0
votes
1 answer

NoClassDefFoundError after loadlibrary

I made a native extension for Flex which works fine. When calling Java functions from Flex I get the desired result. But if I want to load a shared library in Java the application crashes at startup. The code for loading the library: public static…
Wessel van der Linden
  • 2,592
  • 2
  • 21
  • 42
0
votes
1 answer

LoadLibrary failed with error 998: Invalid access to memory location

I am trying to do the get started android app - there are two locations and two methods I have tried, both same result: LoadLibrary failed with error 998: Invalid access to memory location Step 5 from this article. Running the app from here. I…
user1346730
  • 165
  • 4
  • 13
0
votes
1 answer

How to load native library to android library project

First, my project structure is like this: Android project A --> Android Library project B(contains some native so library) --> Java library C. how the project A reference the android library project B: The native library in the android library…
dreamtale
  • 2,905
  • 1
  • 26
  • 38
0
votes
1 answer

GetProcAddress fails for LoadIconWithScaleDown on Windows 7

I'm using the following code to dynamically link to the LoadIconWithScaleDown API, for my code to be able to run on Windows XP: HRESULT (WINAPI *pfnLoadIconWithScaleDown)(HINSTANCE, PCWSTR, int, int, HICON *); HMODULE hComCtrl32 =…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
0
votes
2 answers

Is it safe to call LoadLibrary from DllMain if you've used a kernel driver to ensure yours is the first library loaded?

I've been looking at some hooking code which selectively loads a library into certain processes and then hooks certain native API functions (using Detours). The chain of events looks like this: Kernel driver loads A.dll into every…
Benj
  • 31,668
  • 17
  • 78
  • 127
0
votes
0 answers

Explicit DLL Linking with LoadLibrary and 2 DLLs in C++

this is my first post at stackoverflow and i`m starting with a problem. Im writing a gui application with qt in c++. At the moment I'm stuck on loading and saving dlls which were passed to me. For loading and saving i decided to set functions for…
0
votes
1 answer

why so lib is loaded more than one time by certain process?

b7f27000 84K r-x-- /lib/libpthread-2.5.so b7f3c000 4K ----- /lib/libpthread-2.5.so b7f3d000 4K r---- /lib/libpthread-2.5.so b7f3e000 4K rw--- /lib/libpthread-2.5.so b7f3f000 8K rw--- [ anon ] b7f41000 88K r-x-- …
hugemeow
  • 7,777
  • 13
  • 50
  • 63
0
votes
2 answers

LoadLibrary fails with ERROR_SXS_CANT_GEN_ACTCTX (the dll depends on VS2005 CRT 8.0.50727.4053)

I have a third-party DLL that is built with Visual Studio 2005, which I use in a project that is built with Visual Studio 2008. This DLL depends on VS2005 CRT, version 8.0.50727.4053. On Windows 7 it works, but on Vista and XP LoadLibrary fails with…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
0
votes
2 answers

Can I Load Resource Library (DLL) for x64 build in x86 app?

I want to load unired.dll which used in default Windows Printer driver resource file. I can load unires.dll for Windows Vista x86. It's located in C:\Windows\System32\spool\drivers\w32x86\3 But now I use Windows 7 Pro x64. So the same name…
0
votes
1 answer

Stackoverflow exception in windowsbase.dll when loading an unmanaged dll in managed aplpication

I am trying to load an unmanged DLL using loadlibrary from a a managed applciation every now and again when making a call on the dll I get a stackoverflow exception: "An unhandled exception of type 'System.StackOverflowException' occurred in…
user1145533
  • 687
  • 3
  • 12
  • 24