Questions tagged [loadlibrary]

558 questions
0
votes
1 answer

dll loading error using LoadLibraryA

We are trying to load a dll-library from inside a 64-bit dll using LoadLibraryA function. It returns 126 error - mod not found. The dll file path given to the function is correct, we are sure. We have tried a dummy dll to test and it worked, it is…
lamostreta
  • 2,359
  • 7
  • 44
  • 61
0
votes
1 answer

LoadLibraryW returns nullptr, and GetLastError() returns 3221225619

To describe the problems I've been having would take too long, but the the problem at the sharp end is: LoadLibraryW fails (returns nullptr) when given a valid path. Process Monitor records no suspicious failures, or indeed anything different from…
Mike Sadler
  • 1,750
  • 1
  • 20
  • 37
0
votes
2 answers

Auto-updating a DLL

We are using a wrapper DLL in order allow auto-updating of our application (our product is a DLL). Where should we release the inner DLL when the application is closing?. (We tried to do it in a DLLMain callback but it doesn't seem to work and the…
kambi
  • 3,291
  • 10
  • 37
  • 58
0
votes
1 answer

Is it possible to access DLLs generated with RTW in MATLAB?

Given a DLL compiled using Real Time Workshop, is it possible to then take that DLL and address it using for instance the loadlibrary() function? Attempts to-date have yielded that the DLL 'is not a valid Win32 application.'
J Collins
  • 2,106
  • 1
  • 23
  • 30
0
votes
1 answer

Matlab loadlibrary call, using a network file?

On Windows, Matlab's loadlibrary appears to expect a library located on a mapped drive. What if I want to load a library on a network file share, and in order to make my script useable by many people, I don't want to have to assume that they have…
John
  • 5,735
  • 3
  • 46
  • 62
0
votes
0 answers

Interfacing device visa USB in MATLAB using C DLL files

I am doing a project in which i have to interface a device via USB using MATLAB. The API (dll files) of the device is written in the C++ so i used loadlibrary command in MATLAB to load it and done interfacing. It's working fine. The problem is that…
Saad Saadi
  • 1,031
  • 10
  • 26
0
votes
1 answer

What process is calling LoadLibrary

I'm developing a dll and I need to know some information of the process where it will be attached to, to take desitions whether I hook calls to some functions or not. For instance, if process is explorer.exe I don't want to do anything of that, just…
Omar Mainegra
  • 4,006
  • 22
  • 30
0
votes
2 answers

LoadLibrary cannot find ntoskrnl

I am writing a small app which calls KeBugCheck and crashes the system but LoadLibrary is unable to find ntoskrnl.exe (I get 126 as return value when calling GetLastError) Here is my code: void* fnc; HMODULE bcLib; bcLib =…
noobprohacker
  • 125
  • 3
  • 15
0
votes
1 answer

LoadLibrary - correct CleanUp in C++

I have this little code in C++ Visual Studio 2012 for calling static function from dll file build with cygwin, and this code below totally works. the problem is, sometimes it crashes on the function call, or outputs result values as usually to the…
user2426290
  • 382
  • 2
  • 14
0
votes
3 answers

LoadLibrary on OCX file fails in Windows 7 x64

I need to open a html help file from within a legacy windows application written in old version of C++ Builder. HtmlHelp is loaded via HtmlHelp.ocx, which I am loading via LoadLibrary. This has worked fine for years, but it does not work anymore in…
Adrian Grigore
  • 33,034
  • 36
  • 130
  • 210
0
votes
2 answers

How to access a function inside a dll file in C++

I am currently trying to communicate with a device using CAN. To do so I am using PCAN Basic using C++. Unfortunately, I know nothing about accessing a function inside a dll file (which is what is provided). I found this link: Calling a dll…
code11
  • 1,986
  • 5
  • 29
  • 37
0
votes
0 answers

Debugging invalid access to memory in LoadLibrary

I am working with a series of DLLs that are loaded as individual CView classes in a MFC application using LoadLibrary from WinBase.h. Building for release works and all the various DLLs load. However, when I do a debug build with Visual Studio…
A.E. Drew
  • 2,097
  • 1
  • 16
  • 24
0
votes
1 answer

Face recognition using opencv

I am facing problem with opencv in android. I tried a lot searching in google and also try to debug .But not able to figure out the solution. Here is hte logcat file: 06-27 16:52:41.423: E/AndroidRuntime(6974): FATAL EXCEPTION: main 06-27…
Developer
  • 385
  • 1
  • 3
  • 18
0
votes
1 answer

Loading/calling ntdll from DllMain

One should not use functions other than those in kernel32.dll from DllMain: From MS documentation: Because Kernel32.dll is guaranteed to be loaded in the process address space when the entry-point function is called, calling functions in…
Roland Pihlakas
  • 4,246
  • 2
  • 43
  • 64
0
votes
1 answer

Load C# dll and find entry point

How to load a C# dll and find the entry point from it? I have used following code to load the library string str = @"D:\MyDLL.dll"; str = Path.GetFullPath(str); Assembly assembly = Assembly.LoadFile(str);
kaps
  • 186
  • 4
  • 18