I am using .NET 6 for a project where I am reading some data from serial. The SerialPort.ReadExisting is my choice of method for reading serial data. This method returns the data as string but I need the data as byte array. I know of System.Text.Encoding.ASCII.GetBytes but my confusion is that I...
The problem was neither with the native module nor a missing dependency. I packed the module and its dependencies in a folder in the same path as the executable. The c# code, however, ignored the folder when looking for dependency. It finds my dll, tries to load it, needs some other dlls and...
I built the c++ component with "-std=c++20 -O3 -m64" flags. Using Dependency Walker, other than the "API-something" and "EXT-something" dlls, it only uses the 3 dlls mentioned in the question. I have put all three in the same folder as my dll. Is there any component from Windows 10 that is not...
Simply put, I have a c# code for UI and a native c++ dll for calculation. The dll is compiled for 64-bit with gcc 11.2. I am using MSVS 2022 for the UI. Selected .NET version is 4.8. The import is done with LoadLibrary, GetProcessAdress and Delegate.
The c++ functions are exported as,
extern...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.