Questions tagged [dll]
A dynamic-link library (DLL) is a module that contains functions and data that can be used by another module (application or DLL). It is Microsoft's implementation of the shared library concept in the Microsoft Windows and OS/2 operating systems.
26,092
questions
1
vote
1
answer
73
views
How to get USB C++ SetupApi.h on a computer for a .NET application Installation to use
The story:
have a .NET8 WPF app that requires connections to various USB serial devices. Installed in Windows only.
Wanted to get the Device Descriptors of the USB devices for further info when ...
0
votes
0
answers
54
views
How can I solve invalid dependencies problem with g++?
While practicing compiling cpp into dll, I encountered the following problem
My Window bit is 64
Here is cpp code that compiled:
#include <iostream>
extern "C" {
__declspec(...
5
votes
0
answers
130
views
I want to call a c# .dll file from rust code
Calling a C# .dll from Rust: Issue with Function Invocation
Problem:
I'm attempting to call functions from a C# .dll in Rust using the libloading crate. While one function (my_name) works correctly, ...
0
votes
0
answers
74
views
Merging dlls into a single .exe with .NET framework 4.8 and doing it manually with no weaver
Merging dlls into a single .exe with wpf
based off this thread and commments
urprisingly easy! In short only three steps: 1. edit your .csproject and paste the provided lines 2. create a .cs file, ...
0
votes
0
answers
24
views
Integrate the DLLs that the project depends on into the final generated DLL of the project
The DLL generated with VS2022 and PCL 1.13.1 requires third-party DLLs like pcl_common.dll when called on another device.
Packaging these dependent third-party DLLs into the final DLL.
Is there any ...
0
votes
1
answer
88
views
Class in DLL crashes application
I am using Microsoft Visual Studio Professional 2022 (64-bit), I am trying to add classes to a DLL. Previously I have created a DLL which contains string resources and this works fine. However any ...
0
votes
0
answers
83
views
DLLs, Classes & Memory Management
So this is more of a general question at this point, I don't have code written yet.
But when you are writing code for DLLs in C++, is the burden of memory management on the DLL or on the user ? My ...
0
votes
0
answers
33
views
Which .dll file do i choose for setting up luajit?
I'm trying to get LazyVim/NeoVim setup and I need to build with luajit, but I wasn't able to do the instructions:
Copy luajit.exe and lua51.dll (built in the src directory) to a
newly created ...
1
vote
0
answers
79
views
System.Runtime.InteropServices.COMException: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
At the moment I am trying to use VB6 (.dll) file in a .NET environment, but I am running against an error what I cannot resolve.
Error:
System.Runtime.InteropServices.COMException: 'Retrieving the COM ...
0
votes
0
answers
117
views
How to create in Rust a forwarded dll export with a mangled name
I'm trying to create a Windows DLL in Rust that proxies one of its exported functions to a function in another dll (other.dll). The problem is that the other.dll exported name is mangled, something ...
0
votes
0
answers
79
views
CPU Temperature data not showing in Powershell via LibreHardwareMonitorLib
Im trying to get various metrics of a windows system using LibreHardwareMonitor (primarily focused on temperature), and im limited to cli. Since i can load the LibreHardwareMonitorLib.dll file (as ...
0
votes
0
answers
125
views
Can't debug external application. Exception "0x80000004: Single step" when trying to lunch debug
I am making a plugin for the software "TVPaint" and would like to debug it.
The plugin is written in C and C++ and compiled as a .dll, put in the "plugin" folder at the software ...
2
votes
1
answer
121
views
How to debug DLL issues in MinGW?
When using MinGW, it's easy to run into a DLL hell, i.e. your program not running because it either doesn't find the required DLLs or finds incompatible versions of them.
This can manifest itself as:
...
0
votes
0
answers
52
views
COM interface and returning the structs
I keep thinking about how best to implement the interaction between a shared (DLL) library and an application in C++. I settled on the idea of a COM interface. The essence of this idea is that we ...
0
votes
0
answers
18
views
Can you modify the "netmsg.dll" and is it worth it?
I'm making a translation of a certain program designed for adjustment, setting and troubleshooting of specific devices it was made for. The reason is, that my colleagues can't speak English or any ...