Search results for query: *

  1. rkb771

    Question Cast string to byte array

    Thanks for the clarification. Then, I might get untimely DataReceived event just because 4 sequential bytes resembles -1.
  2. rkb771

    Question Cast string to byte array

    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...
  3. rkb771

    Question Problem loading dll on Windows 11.

    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...
  4. rkb771

    Question Problem loading dll on Windows 11.

    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...
  5. rkb771

    Question Problem loading dll on Windows 11.

    Sorry about the mistake. I have edited the question. Could you help?
  6. rkb771

    Question Problem loading dll on Windows 11.

    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...
Back
Top Bottom