568 questions
0
votes
0
answers
81
views
Loading a resource DLL build for a different architecture to only assess resources
I'm programming a MFC application that should be internationalized. Currently I'm providing separate language DLLs per architecture (ARM64, x86, x64), but I'm unsure whether this is really necessary. ...
6
votes
0
answers
280
views
Local static variables are not initialized if app is loaded as dll
We have sandbox.exe, app.exe and app.dll. If users want to run the not sandboxed application, they run app.exe. If users want to run the application in the sandbox, they run sandbox.exe that loads app....
0
votes
0
answers
210
views
Unable to load shared object?
I updated Rstudio to the most current version, and then went to re-import data sets from .csv into R, because I changed some data in the physical file.
im getting the following error
unable to load ...
0
votes
1
answer
126
views
Diagnosing delay import failure of DPAPI.DLL in CRYPT32.DLL
I have an application that simply calls the CryptProtectData() function:
CryptProtectData(...);
This call returns FALSE and the GetLastError() function returns 127 (0x7F), which is ...
-5
votes
1
answer
105
views
When using dynamic linking (dll), how should i handle values that are #define inside the dll?
I'm learning how to work with DLLs in Windows using C++, specifically with the LoadLibrary and GetProcAddress functions.
For practice, I've chosen libcurl as an example to experiment with dynamic ...
0
votes
0
answers
36
views
Should Boost.Log work with a sink in a dynamically linked application and logging source in a DLL loaded via LoadLibrary?
I maintain a Qt application that makes extensive use of plugins, and am trying to streamline the logging behavior by moving to Boost.Log.
The simplified structure is as follows:
MainLibrary.dll: has ...
1
vote
0
answers
27
views
Implementing a Matlab Reader using winsock2 and DLL library
I am trying to interface Matlab with a C code that I used to read data through UDP.
I am using the winsock2 library, and compiling the C code into a DLL file for it to be loaded into Matlab. My C code ...
-1
votes
1
answer
253
views
LoadLibrary GetProcAddress - why does this work?
When I run this code with Visual Studio Code with the function name "MessageBoxA", it works, and it provides me a pointer to the function.
However, when I change the name of the function to, ...
0
votes
0
answers
88
views
LoadLibrary vs build configuration
I use LoadLibrary to dynamically load a library in my application. In Visual Studio, I can set different build configurations: x86 or x64 / Debug or Release. I can also build a library from source in ...
1
vote
1
answer
746
views
Load DLL Library with dependencies multiple times on Windows
Imagine the following scenario :
My Program -> lib A -> lib B -> lib C
I have my library A, which loads library B, which loads library C. I have the source code and can modify library A, ...
0
votes
0
answers
660
views
Can't load this .dll (machine code=0x686) on a AMD 64-bit platform
I am getting below while loading the DLL file on Windows Server 2016 with AMD processor using Java code. We are generating the DLL file using the Microsoft Visual Studio 2017 from CPP code.
Caused by: ...
1
vote
2
answers
868
views
How to initialize a C++ class inside a DLL which was loaded via LoadLibrary()?
I got a problem from my clients.
They removed some VC++ projects from their product, only have the dlls .
Now they want to process some data with some functions inside these dlls.
Let's say this is ...
0
votes
0
answers
3k
views
DLL load failed while importing cv2: The specified module could not be found
I'm working on a CNN image classification project , and I'm using jupyter lab and python .
Well , I'm facing this problem and could not resolve it .
Ps : ( My windows edition is "Windows 10 Pro N&...
0
votes
0
answers
71
views
OSError: libDTKLPR5.so: cannot open shared object file: No such file or directory
enter image description heretrying to use cdll.LoadLibrary function in Python 3.11.0 in Ubuntu 22.04.1 LTS 64-bit.
Below error occured. If you have faced this kind of issue please help.
Traceback (...
0
votes
1
answer
35
views
See result of System.loadLibrary/ the defined methods and classes?
I have an .so file that I successfully integrated into android studio and I can load the file by calling System.loadLibrary.
Is there a way I can see what methods and classes I can use now with this ...
1
vote
0
answers
106
views
What kind of file lock does C# DllImport use?
Our app (C# WPF) is using some C++ libraries, and I'm trying to make it so that the dll could be replaced with a different version on app startup.
Simply replacing the file at startup, before it was ...
0
votes
0
answers
1k
views
Dynamic library loading failed
I'm trying to make dynamic library with all dependencies linked statically (except system libs). After building it on Windows10 I checked its dependencies with Dependecy Walker. It gave me next output:...
1
vote
2
answers
683
views
Intercept LoadLibrary calls by current process after DLL injection
After injecting my DLL into a process via CreateRemoteThread, I would like to know how this DLL could intercept any calls to LoadLibraryA/W that are made by the injected process.
I saw the library ...
0
votes
0
answers
892
views
Java can't load library as can't find dependent libraries
I am writing a java web application which needs to load a native C++ dll via java source code. I have placed the dll called "myCPPlibrary.dll" and all the dependent DLLs at the same ...
-2
votes
1
answer
1k
views
How can I export a macro function and use it in a project .exe?
I have a dll project (Server.dll) containing a Server.cpp
Server.cpp
#include "pch.h"
#include "Server.hpp"
extern "C" {
_declspec(dllexport) int Server::Add(int a, ...
2
votes
1
answer
335
views
Loading a DLL with LoadLibraryA(path_to_dll) is changing the inherit handle flag (HANDLE_FLAG_INHERIT) from 1 to 0 for file descriptors 0, 1, and 2
We have written some functions in golang and a c wrapper on top of that to invoke those functions. We first build golang code to create an archive file and then we build the wrapper code in c to be ...
0
votes
0
answers
132
views
Run-time loading DLL with /MT +Unicode in application with /MD +Multibyte?
My main program is build with the /MD flag, and "Multi-Byte" Character set.
I have another library, which is build with the /MT flag and "Unicode" Character set, which I'd like to ...
0
votes
1
answer
2k
views
python3.8 load dll OSError: [WinError 127] The specified procedure could not be found
env: windows10-64, python3.8.8,
CALL relation is -->
in file jgtrade_api_func_def.py
#!/usr/bin/env python
# coding:utf-8
from ctypes import *
jgtradeapi = windll....
1
vote
1
answer
4k
views
How to select the path for DllImport at run-time when the name of the required DLL can change?
I have asked this questions today, but it was falsely closed and I have no option to re-open it. Therefore, I have to ask it again.
I have a class that has a long list of definitions like these:
[...
0
votes
0
answers
736
views
Native Library net.dll already loaded in another classloader
I have two third party dlls: Net.dll and API.dll. API.dll depends on Net.dll
When I use System.loadLibrary("Net"); the program reports an error:
Exception in thread "main" java....