26,114 questions
0
votes
0
answers
180
views
How to Ensure Compatibility of MinGW-Compiled DLLs on 32-Bit and 64-Bit Windows Systems?
I'm creating two proxied DLLs for wintrust.dll: one for 32-bit systems and another for 64-bit systems, using the gcc compiler from the MinGW64 and MinGW32 toolchains. The goal of these DLLs is to ...
0
votes
0
answers
56
views
How to load all types of dependency, assembly and Dll in .NET Core code
I get this error whenever I rebuild my code:
Could not load file or assembly 'Microsoft.CSharp, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. Either a ...
1
vote
1
answer
113
views
How to fix C++ DLL not updating data for pointer to C# struct
This is my first time working with trying to get interoperability working for C++ and C#, so I am likely making a lot of mistakes, however I have been researching the topic for about a week now and ...
0
votes
1
answer
153
views
'ImportError: DLL load failed while importing controller_wrappers: The specified module could not be found.' when importing qiskit-aer
I am trying to run
from qiskit-aer import Aer
but that returns the error
Traceback (most recent call last):
File "C:\Users\cr18222\PycharmProjects\pythonProject\testing.py", line 1, in &...
1
vote
1
answer
47
views
How do I make my dynamic library available to my other projects?
I'm writing a TLS library in Rust, but I'm making it a C dynamic library. To test it out, I'm working on a simple HTTPS client in C. I have to dynamically link turtls (my TLS library) to my HTTPS ...
0
votes
0
answers
84
views
Multiple symbol definitions when using the same template type from different DLLs used in the same project
I have a hard problem with multiple definitions of symbols in a complicated environment I do not completely control.
I apologise in advance for the verbosity of the question... but it's quite ...
0
votes
1
answer
146
views
OpenCV in C++, error loading .dll libraries: libstdc++-6.dll: cannot open shared object file
(Note, I'm using MSYS2 on Windows 11. I haven't had any issues with includes or libraries until trying to use OpenCV.)
I'm trying to use OpenCV for a C++ project. In my IDE, I added the relevant ...
0
votes
2
answers
227
views
Cygwin Perl won't load DLLs anymore, perhaps due to a failure to convert cygwin paths to Windows paths
I'm suddenly unable to run any Perl scripts under Cygwin. Every script I try to run crashes like this:
phil@TAICHI /cygdrive/h/bakE/new/virChecked
$ findFiles -s . -t /cygdrive/D/data-comp/text -u /...
0
votes
1
answer
86
views
simple example to pass a+b to a dll in C++and get the dll to ceturn c?
I am trying to create a wrapper dll. So far I made one .dll that sums a and b. Then I used the tutorial here
https://www.nerdthings.dev/2020/08/06/understanding-loadlibrary, but did not get anywhere. ...
0
votes
1
answer
78
views
Should I distribute the Mailkit System. dependencies
I'm new to MailKit and I see that it has a number of dependencies named "System.xxx" that are in the NuGet package. (vesrion 4.8.0 - I'm using .net 4.7)
Should I include these in the ...
0
votes
4
answers
256
views
Problem compiling a Class Library .dll (Universal Windows) in Visual Studio 2022
I'm a little inexperienced with the C# language and especially with Visual Studio.
I'm developing an application in Visual Studio for screen capture using Microsoft.Windows.SDK.Contracts and SharpDX....
0
votes
1
answer
221
views
msys mingw64 compiled library: A dynamic link library (DLL) initialization routine failed
I compiled native library using msys with compile flags -s -fomit-frame-pointer -fno-unwind-tables -fdata-sections -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -fstack-protector ...
0
votes
1
answer
75
views
ASP.NET Core project.dll can't find appsettings.Production.json file
I'm trying to deploy my ASP.NET Core project on ubuntu. I've copied the release files on my vm, installed the runtime and created a service file. However when I start the program I get the error
...
0
votes
1
answer
50
views
What associated DLL's need to be included for the release of a .NET 6.0 console app?
I have written a console app in Microsoft Visual Studio and compiled using the "Batch Build" command. I have placed this executable into its own folder as I am told from a tutorial to do so ...
2
votes
2
answers
276
views
How to alias a function in C++ DLL
For scientific purposes I’m writing some number crunching routines in C++ and benchmarking various ways of running computations for ultra-high-precision floating-point numbers. And when I decide on ...
1
vote
1
answer
100
views
Prevent #include of particular headers when a C++ project is built to a DLL?
I'm planning to build a C++ project to a DLL for other C++ projects to use. When building the DLL, as you may assume I want all compiled header objects from the project to be linked into the DLL build....
1
vote
0
answers
37
views
How to call a function from a structure obtained from a c++ library on c#
There is a library written in c++, here is its H file.
//...
extern "C" DWORD WINAPI GetDllVersion(void);
extern "C" LPVOID WINAPI CreateInstance(const char \*...
1
vote
0
answers
116
views
How to fix cyghidapi-0.dll missing error cygwin
I am learning C and trying to do a project for class at home however, everytime I try to run I get the error
"error while loading shared libraries: cyghidapi-0.dll: cannot open shared object file:...
0
votes
0
answers
87
views
Use GlobalVariables.dll from Python
I am using GlobalVariables within Multicharts with no issues. For example, if I create this indicator:
inputs: DayValue(18);
AccuracySetNamedInt("Day", DayValue);
RecalcLastBarAfter(1);
...
-1
votes
1
answer
93
views
Checking a dll content with C#
I play a game with a lot of mods. These mods come in the form of resources (images, contiguration files) as well as .dlls for C# code added or modifying the original game. The problem is that there is ...
1
vote
1
answer
68
views
How to link a Dll
How can i link a dll? I use windows and minGW
this is the content of the folder:
dll.dll
main.cpp
the a main.dll is compiled with:
g++ -c dll.cpp
g++ --shared -o dll.dll dll.o
The content of dll.cpp:...
0
votes
1
answer
249
views
How to run SFML 64-bit with a mingw-Compiler including -std=c++23 on Windows?
Conditions of the problem:
Downloaded and unzipped 'SFML (Version 2.5.1)' for 'GCC 7.3.0 MinGW (SEH) - 64-bit' from official website
Copied dll files into my own project folder containing main.cpp ...
2
votes
1
answer
141
views
Run specific function from command line (.NET C#)
I'd like to be able to run a specific function in my DLL from the command line without changing my Main function.
e.g.
If I had the code:
namespace MyApp;
static class Program
{
public static ...
1
vote
0
answers
64
views
passing 2d c array to labview [duplicate]
I want to create a dll that gets some data and put them in a 2d array and then pass it to labview
the problem is all I get is a pointer instead of the whole array
I allocate array in c by using malloc ...
0
votes
1
answer
128
views
Unity project breaks when pushed to and then cloned from GitHub
I have a Unity Project MainProject which I edited and then pushed to a branch in GitHub. I then merged this branch into my main branch. My friend wanted to edit and open the project so he cloned it ...