A high level question about HIDAPI, if anyone has any experience with it - http://www.signal11.us/oss/hidapi/ - The visual studio solution is written in C++, and I have a C# project that I want to use the library on. Is there any way to use the C++ library? Can I build a DLL from the solution and add it as a reference on my C# project?
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in DLL
- C++ using std::vector across boundaries
- Linking to a static lib compiled with MSVC
- What are MATLAB DLLS?
- VC++ .net: Functionality from managed DLL is not exported
- DLL being marked as DELETEPENDING
- ASP.NET Web Forms give error while connecting to Oracle 11g
- Air Native Extensions: Released Air App w/Windows Native Extension works fine on develpment PC but not on other computers
- WiX and custom extensions for primary output?
- Using different versions of the same DLL in a project
- visual c++ - missing unrelated DLLs
- Error executing SSIS Package
- C++ Access violation write to 0x00000000 in dll in mql4
- How can I read embedded .resx in different assembly
- Running two versions of same Dll parallel in Asp.Net
- Call class member of c++ DLL from c#
Related Questions in HID
- RPi running script at boot then stops
- node-hid not showing all USB devices
- STM32 USB HID reports
- How To Read HID Output Reports Cross Platform
- HIDAPI - using in a c# project
- HID Temperature Device Report Reading
- HidLibrary, Get Serial Number from USB device
- Dylib not loaded
- Convert events from a USB human interface device using C++
- HID Gamepad Report Descriptor Issue
- usb hid: why should i write "null" to the control pipe in the out endpoint interrupt
- How to hid blue title bar in Navigation activity?
- Automatic inputs in Chromium are filled randomly
- Application got stuck when using HidP_GetValueCaps() second times
- HID Device Interface in macOS
Related Questions in HIDAPI
- HIDAPI - using in a c# project
- How to call a function in .c file from .m or .swift files in ios?
- Windows error messages
- How to make Logitech MX Master 2S switch bluetooth channels by hidapitester?
- Writing to HID keyboard works on Linux but not on Windows
- HIDAPI on linux doesn't seem to recognize descriptors
- Writing data to a USB scanner with Python
- How to read temperature on usb device with HIDAPI?
- STM32 USB Custom HID only 1 byte per transaction
- How to differentiate between devices in the windows HID API?
- Using HIDAPI, how can you raw data question
- Using HIDAPI to receive different sized data packages
- Java and HID Communication
- Java HIDAPI - Asynchronous reading
- HID USB control transfer (Windows)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
From what I see HIDAPI is a C library, not C++. It contains only structures and functions. Theoreticaly you can go on with DLLImport + PINVOKE, but it can be very annoying and troublesome to map C structures to C# types. I would suggest to create a C++/CLI class which will have "high-level" interface and will use HIDAPI as backend. All the logic will be hidden in C++/CLI class and user will only use high-level functions. In that case you will get a managed dll which you will be able to use in your C# project with ease. Hope that will help you.