26,159 questions
-4
votes
1
answer
76
views
C++ Injection dll export function
I am trying to inject a dll in a windows .exe process for example notepad.exe, the injection works fine but when the dll is already injected in the process and I try to call the exported function it ...
0
votes
1
answer
41
views
Creating a console window from a DLL for debugging aims
I have implemented a DLL (C++, VisualStudio, Windows), which extends function of an another program (further - main program).
I don’t know internal architecture of the main program, except it is GUI-...
1
vote
0
answers
20
views
PowerShell "Assembly with same name is already loaded" on different Module Versions [duplicate]
I have a script that requires using two versions of the same module with conflicting assemblies:
#Requires -PSEdition Core
# main logic
Install-Module -Name MyModule -RequiredVersion 2 -Scope ...
0
votes
0
answers
41
views
Ordinal Number not found in DLL
I'd like to start developing a C++ web application with the drogon framework for learning purposes.
I followed the Installation Guide and the Quick Start tutorial from the drogon docs. I'm using ...
1
vote
1
answer
46
views
C# DLL with [ComSourceInterfaces] Attribute Not Working in VBA WithEvents
I am trying to use a C# DLL in VBA with events using the [ComSourceInterfaces] attribute, but I am encountering issues. Here's what I have so far:
C# Code
ITaskRunnerEvents.cs
using System;
using ...
0
votes
1
answer
44
views
Why is my DLL still working when it is missing dependencies? [closed]
I have a few C# .NET Framework projects that I build to DLLs to use as plug-ins in Sony VEGAS. All of these projects are related enough that I can isolate some shared functionality to a unique 'Core' ...
0
votes
1
answer
30
views
Why are the images/descriptions from "Enlarge Inno Setup component page only with preview and description" not loading in my script?
Introducing the problem
Firstly, this might be a long post (sorry in advance), but after trying to implement the image previews and component descriptions from the question mentioned in the title, I'...
0
votes
0
answers
19
views
Cannot get decriptions for events from ETW Providers
I created a trace on my Windows 10 laptop using this logman command:
logman create trace "Microsoft-Windows-Kernel-File" -p Microsoft-Windows-Kernel-File 0x1800 -o "C:\Logs\Microsoft-...
1
vote
0
answers
45
views
How to call a device function in another DLL in CUDA kernel
I have a DLL with an exported device function, and I am trying to write an executable that will call into that function in parallel on the device. But I get a compiler error on the line with the ...
0
votes
0
answers
21
views
how to get class instance in .js using edge.js
Threre is a named MyNamespace::Namespace::SubNamespace namespace, and a ClassName under the MyNamespace::Namespace::SubNamespace named ClassA, and get constructor of ClassA, like 'ClassA^ cls = gcnew ...
1
vote
0
answers
36
views
Cannot run AVD in Windows 10
ANDROID STUDIO :
Android Studio Iguana | 2023.2.1 Patch 2
Build #AI-232.10300.40.2321.11668458, built on April 4, 2024
Runtime version: 17.0.9+0--11185874 amd64
VM: OpenJDK 64-Bit Server VM by ...
-1
votes
0
answers
20
views
How to add RBDL to Unity?
I need to add RBDL to Unity 6000 project. Unfortunately, RBDL is using Eigen and the Eigen Website is not working. I tried merging these 2 lib, but it didn't work.
1
vote
1
answer
41
views
New dll in Dyalog APL
Is it possible to use a new dll in Dyalog APL? I can use the existing dll's just by setting ⎕USING, but this does not work if I download a new dll. Simply copying the dll in the directory and calling ⎕...
0
votes
0
answers
33
views
Could not load file or assembly 'System.Runtime.Serialization.Xml
I am encountering a persistent issue where our .NET application fails to locate a required assembly (System.Runtime.Serialization.Xml, Version=4.1.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)...
0
votes
0
answers
12
views
How to reference c# .netstandard(2.0)(uses third party dependencies like OnnxRuntime,Opencvsharp) class library in WPF(.net framework 4.7.2) UI app?
Hi i have created a class library in c# visual studio in .net standard 2.0. a. It has onnxruntime ,opencvsharp etc dependencies.
Now i am building this library and using it in my WPF UI application. ...
-2
votes
0
answers
80
views
Datatype marshalling from C# Struct to C
I am trying to figure out the correct type to use for marshalling a char[] into a C dll function. The following code sends the dll the char[] data correctly and returns the expected result from the ...
1
vote
0
answers
14
views
How can a process in Windows be detected immediately after its creation, before execution begins, to enable interception during initialization?
Injecting a DLL to intercept ShellExecuteExW API calls for detecting hidden cmd.exe executions. However, processes often finish before detection, making injection ineffective. Since ShellExecuteExW is ...
4
votes
0
answers
95
views
How to securely call C++ APIs from a Java application?
I have a C++ library (myLibraryMd.lib/myLibraryMt.lib) and the header file myClass.h that contains the declaration of APIs that are called on the myClass class/object. There are other headers/APIs ...
1
vote
0
answers
53
views
Can't go to next line without Ending text in QR code using barcode Printer API
I am generating a QR code in a C++ project and trying to include multiline text. However, whenever I add a line break using \n or \x0A, the QR code generator stops rendering text after the first line ...
0
votes
2
answers
113
views
Why does my program not find my DLL file?
I have a program and it worked just fine, but when I compiled my MainDLL.dll file, my program won't find it. It returns (0x7E) (The specified module could not be found). The .dll file is in the same ...
1
vote
2
answers
42
views
An fmu generated by visual studio runs on simulink, but it encounters an error:"Unable to load dynamic library"
I have a Visual Studio 2013 project, coding by C. And I generate a dll file, and put it into a directory of fmu file structrue, and there are some other sources like modelDescription.xml. I compress ...
0
votes
0
answers
63
views
Unable to add external libraries
I am using c-lion and i have some cpp/h files and some external .lib/.dll files which are 32libs (glew32,glut32) . I am failing to link the external libs.
C:\Program Files\JetBrains\CLion 2023.3.2\bin\...
0
votes
1
answer
42
views
Is that possible to reload the third-party Outlook VSTO add-in by program means or make the wrapper add-in triggering configuration reload?
I'm developing the Outlook VSTO add-in that interacts with the third-party Outlook VSTO add-in.
The third-party Outlook add-in is stateful and I can't force it to reload its configuration that was ...
0
votes
0
answers
31
views
How can a dll initialisation failure be diagnosed (failing exclusively on VMs)?
I have a C# app which uses a C# DLL which is a wrapper around PCL 1.12.1. The two known dependencies are vcredist and the .net 8 runtime. All the PCL dlls are deployed with the app.
I wanted to test ...
0
votes
1
answer
82
views
A .NET Framework error occurred during execution of user-defined routine or aggregate "storedprocedure": System.Net.WebException:
Executed as user: usr_emanD.
A .NET Framework error occurred during execution of user-defined routine or aggregate "uspCLRNotify": System.Net.WebException: Unable to connect to the remote ...
0
votes
1
answer
77
views
Loading DLL with dynamic path in Excel 32bit
I'm currently trying to load a dll (C++) with a dynamic path into my VBA Code.
I've two different dll's, one for 32bit and one for 64bit. Both dll's are working fine, I can also use both if i declare ...
0
votes
0
answers
7
views
Remote Debugging with build updates
I am using Visual Studio 2022 remote debugger. It works well but every time I want to change the code, I need to build again and copy the new DLLs to the remote machine.
Is there a way to automate the ...
0
votes
0
answers
44
views
Could not load file or assembly 'Microsoft.UpdateServices.BaseApi' with the referenced "Microsoft.UpdateServices.Administration.dll"
I'm developing an "ASP.Net Core Web API" in Framework .Net 8.0 working with Microsoft WSUS, I have referenced the file :
C:\Program Files\Update Services\Api\Microsoft.UpdateServices....
0
votes
0
answers
51
views
I face the Java Problem MY program gave me error .UnsatisfiedLinkError but the file is they
I have a Java program that uses a native DLL file. It works perfectly on my development machine but fails with a UnsatisfiedLinkError or a "file not found" error when I run it on another ...
1
vote
1
answer
62
views
Different symbols in openssl static and shared library
I configured and built openssl 3.0.15 on Windows, and it works fine. I have the static libraries and the shared too. When I tried to link my application to one of these I noticed that it works with ...
0
votes
1
answer
36
views
Visual Studio reference multiple project configurations in the same build
I have a Visual Studio 2017 solution with four projects: a shared static LIB (C++), a DLL (C++) built with static dll linking, an EXE (C++) built with dynamic linking, and a SETUP project that ...
1
vote
0
answers
66
views
Qt: QCoreApplication / EventLoop in shared library
I need to develop a shared library (Windows dll) based on the Qt framework. In particular, I make use of QTimer, but do not need any GUI elements. However, this library might be used by applications ...
1
vote
3
answers
103
views
Why 'constructor' attributed function with the same name is called 3 times from library X instead of 1 time from libraries X, Y, Z
Scenario:
$ cat lib.c
#include <stdio.h>
#define STR_(x) #x
#define STR(x) STR_(x)
#define CAT_(x,y) x##y
#define CAT(x,y) CAT_(x,y)
__attribute__((constructor))
void CAT(foo,)(void) { printf(&...
1
vote
0
answers
64
views
"module "MyQmlDll" is not installed" error when importing the DLL in a project
I've got 2 projects, a DLL, and a main project.
Importing the DLL into the main project causes this error before starting the application:
QQmlApplicationEngine failed to load component
qrc:/MainP/...
0
votes
0
answers
40
views
Pintools - Failure to open DLL file WS2_32.dll
I'm writing a pintools using Pin. My pintool needs to implement some socket functionalities, so I included the winsock2 lib. When compiling the pintool with the Pin makefile I got the following error:
...
0
votes
0
answers
32
views
How to resolve "Entry point Not Found" in release mode
I am developing one DLL in VC++ and its working while testing with my Test.exe app in debug mode. But while running Test.exe in release mode I am getting "Entry point Not Found" error
While ...
0
votes
2
answers
84
views
c++ dll loading: Call function before global variable constructors
I'm working on a plugin based system that uses shared libraries for the plugins. I want to set up some static variables in these libraries so I can use them in various places, including global ...
0
votes
2
answers
90
views
Developing a word library add-in for office 2024
i'am trying to develop addin for word 2024.
I have created a dummy dll like this:
#include <Windows.h>
extern "C" int WINAPI wlAutoOpen(void);
extern "C" int WINAPI ...
0
votes
0
answers
41
views
C++ I get error code 5 error when doing patch bytes in DLL injection
After DLL injection in C++, I get error code 5 when trying to NOP the bytes I want. I think this is an access permission error. What should I do for this? I tried to run the loader as administrator.
...
1
vote
0
answers
59
views
DLL load failed while importing win32crypt
When I try to import win32crypt, I immediately get the following error:
builtins.ImportError: DLL load failed while importing win32crypt: The specified procedure could not be found.
This link appears ...
1
vote
0
answers
28
views
Reducing duplicates in and size of dependency storage across multiple projects
I am currently working with a new program that has been developed to store all of its dependencies in a folder called 'Product'. I'm sort of new to .csproj files so I'm figuring this out as I go. I ...
0
votes
0
answers
146
views
ImportError: DLL load failed while importing _psycopg in psycopg2
I'm having trouble importing the psycopg2 module in Python. When I try to import psycopg2, I get the following error:
---------------------------------------------------------------------------
...
0
votes
1
answer
73
views
Returning a wchar_t* from a DLL function not working?
Need some help to figure out why I can't get the expected result back from a call to this dll function below. The external dll function is called from within an executable and it returns a garbled ...
0
votes
0
answers
55
views
Unit tests are missing dlls [duplicate]
So everything works on Ubuntu, on windows, unfortunately not. I have a project with one library and one app.
My root CMakeLists.txt is :
cmake_minimum_required(VERSION 3.20)
project(WingWorkshop
...
0
votes
0
answers
91
views
Why Can't Data Members Be Exported To A DLL?
As far as I understand, the point of __declspec(dllexport) is to be an instruction during DLL compilation to export enough information to the LIB that goes with the DLL to allow specifically member ...
-1
votes
1
answer
47
views
Conesequences of Headers Mis-Matching A Library?
I've come to realize that there are times whilst developing a C++ library where including implementation code in the .h files associated with the library becomes unavoidable. An example of such a time ...
1
vote
1
answer
90
views
C++ DLL - Prevent Access To Items After Compilation?
I really don't like the idea of putting lots of effort into carefully developing & designing a C++ library only for it to be the case that the only thing stopping those who link the DLL from ...
1
vote
1
answer
63
views
Do I Understand The Relation Between LIBs and DLLs Correctly?
I've got a C++ Visual Studio (VS) project that I want to build out to a DLL so that other VS projects can link it. Actually doing this doesn't seem complicated to me but the devil is in the details. ...
0
votes
1
answer
31
views
"[WinError 193] %1 is not a valid Win32 application" running CDLL with 64 bit MinGW-w64
I'm trying to compile and run a package on Windows 11 with MinGW-w64, but I'm getting the error message "[WinError 193] %1 is not a valid Win32 application" when I try to run the .dll ...
0
votes
0
answers
31
views
Loading dll from one project works but from the other does not
I am trying to load a .dll file in one of my projects like the following.
import ctypes
dll_path = r'C:\path_to_dll'
lib = ctypes.cdll.LoadLibrary(dll_path)
However, I get the error message
...