C#C
C#2y ago
dyxnie

not properly import dll in c# godot

tried recompiling the dll with the c and h file im pretty sure were used:

hidapi.c:
https://pastebin.com/FnPPsZM8
hidapi.h:
https://pastebin.com/JK74uLyc

Command i used for compiling:
gcc -shared -o hidapi.dll hidapi.c -lsetupapi


How i reference it in my csproj:

  <ItemGroup>
  <Reference Include="hidapi.dll"/>
</ItemGroup>



My HIDapi.cs (Wrapper):

https://pastebin.com/V3pRPDhk
Was this page helpful?