26,114 questions
0
votes
1
answer
24
views
Why does my VCL form created inside a DLL disappear when minimised
I have a Windows VCL application written in C++Builder. Some of the UI is implemented inside a DLL rather than directly in the main EXE.
The DLL exports a function that creates and shows a VCL form, ...
0
votes
0
answers
18
views
SBOM (CycloneDX) from .dll - why OST doesn't find vulnerabilities?
I have the following problem:
I generate an SBOM CycloneDX (both manually and automatically) from .dll files and then use open-source tools (OST) to search for vulnerabilities.
The relevant CVEs are ...
0
votes
1
answer
44
views
Linkage of Win32 api and custom GCC build (StrawberryPerl)
I try to build some source code containig Win32 API code with GCC 8.3.0 (i686-posix-dwarf) that comes with Strawberry Perl Portable package. It easily builds code, but struggles when it comes to ...
0
votes
0
answers
62
views
Nuget package "GDAL" - Unable to load DLL 'gdal_wrap' when in an addin
I have a "console" application where I installed the Nuget package "GDAL" (and also GDAL.Native).
Besides the exe file, this application also generates a dll that can be loaded as ...
1
vote
0
answers
78
views
Creating a C chrome.dll forward-only wrapper give STATUS_STACK_BUFFER_OVERRUN
I was experimenting with writing a forward only wrapper that expose the function of the original dll, I decided to play with chromium "chrome.dll", my code seem to work, chromes open but ...
0
votes
0
answers
69
views
How to call .NET Core 8.0.20 C# code from Excel VBA through a native C++ DLL host?
I am trying to call .NET Core 8 (C#) code from C++ dll in Excel VBA.
The architecture I’m targeting is:
Excel (VBA) → C++ native DLL → .NET Core 8 C# DLL
The idea is that the VBA code calls the native ...
0
votes
1
answer
107
views
What is the proper way to load an assembly in new .NET since GAC went away?
I have 2 versions of a vendor DLL that contain same classes but are different for reasons, and have slightly different names.
At any rate I either want to load DLLA or DLLB, I do not want to set these ...
0
votes
1
answer
107
views
import torch error: DLL load failed while importing _C
I was trying to follow a project in university where we had to import cellpose. The import delivered an error message which could be tracebacked to import torch (see below). Every import was done in a ...
0
votes
1
answer
53
views
What to do if PostgreSQL and GStreamer dlls depend on different versions of libiconv-2.dll and libwinpthread-1.dll?
I'm updating the project, in which Qt, PostgreSQL and GStreamer are used. I need to update PostgreSQL to the latest version. PostgreSQL libpq.dll depends on several dlls and one of them is libintl-9....
0
votes
0
answers
37
views
OpenSSL loading fips.dll from two separate location in same exe
I have App.exe that loads A.dll & B.dll. A.dll loads fips.dll from space c:/App/A/fips.dll B.dll loads Fips.dll from space c:/App/B/fips.dll. I see App.exe is loading both fips.dll from both ...
1
vote
0
answers
161
views
Blocking Windows key from Unity doesn’t work when game is in foreground
Before we start, yes, this solution works but only outside Unity.
Intent
I'm trying to prevent the Windows key from interrupting my game. I wrote a DLL that registers a WH_KEYBOARD_LL Windows hook (...
1
vote
1
answer
170
views
Import .pyd Python module
I realized a C++ project and I used pydbind11. All work fine on Linux (C++ compilation with CMake produces test executables and Python module that works when I import it, installation with pip install ...
0
votes
0
answers
88
views
Can't #import old DLLs into Visual Studio 2022
We have a VS 2013 C++ project that imports old DLLs from OSISoft PI (pisdk.dll, pitimeserver.dll, pisdkcommmon.dll).
#import "pisdkcommon.dll" no_namespace
#import "PITimeServer.dll&...
0
votes
2
answers
194
views
C# System.IO.FileNotFoundException Loading Dll
Assembly assembly = Assembly.LoadFrom("System.Private.CoreLib.dll");
With C#, I am trying to load that dll, but it keeps saying:
Unhandled exception. System.IO.FileNotFoundException: Could ...
0
votes
1
answer
934
views
Running labelme in VS Code terminal gets ImportError: DLL load failed while importing onnxruntime_pybind11_state [...]
I'm following along with this YouTube video.
I've already run the command
pip install labelme opencv-python tensorflow matplotlib albumentations
in the VS Code powershell terminal and successfully ...
0
votes
0
answers
75
views
Why does DLL injection with CreateRemoteThread+LoadLibrary fail with exit code 0 in a 64-bit Windows process?
I'm trying to inject a DLL into a 64-bit target process using the CreateRemoteThread + LoadLibraryA technique on Windows 10. Both the injector and the DLL are compiled as 64-bit binaries, and the ...
1
vote
0
answers
45
views
How to import WebPEncodeRGB to dart?
I want to encode image into webp in dart.
I created libwebp.dll file (sources https://github.com/jacklicn/libwebp)
Now I have to use this library for encoding process:
import 'dart:ffi';
import 'dart:...
1
vote
1
answer
124
views
Why the `LoadLibrary()` function and delay-load use different DLL search path?
I have a case when the LoadLibrary() function and the delay-load DLL use different DLL search path. Specifically:
LoadLibrary("DLL2.dll"); // succeeds
while:
FunctionFromDLL1(); // fails to ...
0
votes
0
answers
37
views
NuGet include referenced project in the final package
I always thought that if I created a project (let's call it "TestNuGet") that referenced another project (let's call it "ReferencedProject") and created the NuGet package for ...
0
votes
0
answers
49
views
undefined reference to `DirectInput8Create' [duplicate]
please help.
I am learning the DirectInput API, but I am having trouble calling a single function DirectInput8Create() in my MSYS2-MINGW64 environment. I verified dinput.dll is in the bin/ directory......
0
votes
0
answers
71
views
FreeLibrary fails (returns 0) when trying to unload injected DLL in c++ [duplicate]
I have written a simple DLL injector in C++. Now, I want to unload the injected DLL using the unload function shown below. However, when I run the code, the FreeLibrary function returns 0 and the DLL ...
0
votes
1
answer
66
views
Why does my pythonnet not load the correct dependency when loading DLL:s via reflection
I'm writing a Python application that uses clr 3.0.3.
I'm trying to load a DLL using System.Reflection.Assembly.LoadFrom. My code is basically doing the following:
def load_from(dll_paths):
for ...
2
votes
2
answers
128
views
How to create a working thread inside a dll?
I'd like to write a C++ CLR DLL which creates a thread that does some stuff on his own. The DLL is loaded and maintained by a smoke "classic" C++ win application.
Here is the DLL code:
#...
0
votes
0
answers
62
views
cannot open shared object file: No such file or directory with pybind11
I have a python script myscript.py:
import pydmy as tp
pydmy is my pybind11 wrapper dynamic library. pydmy will load another C++ library libabc.so. libabc.so is under the same directory as pydmy.
In ...
0
votes
1
answer
176
views
ASP.NET Core 3.1 upgrade to 8.0: Unable to load \9.0.5\hostfxr.dll
My new ARM64 laptop is forcing me to upgrade a project (C# API) from ASP.NET Core 3.1 to 8.0 (I had been planning to upgrade anyway as it is long overdue but was hoping to finish a new feature first!)....