LabMat
LabMat

Reputation: 51

C++ .h and .lib files to C#

Wanted to ask a question regarding header files and lib files. Basically I want to create a user application in C# to communicate with an RDM/DMX compatible device.

the problem is that the library and header files are generated by C++. I would like to know if I will be able to use the functions withing these files to communicate with the device using C#?

Secondly, if there are any other alternatives then please let me know if I am barking up the wrong tree. XD cheers. Labmat

Upvotes: 1

Views: 136

Answers (1)

djcouchycouch
djcouchycouch

Reputation: 12832

C# doesn't easily work with .lib files. One method would be to build the C++ library into a WinRT DLL. C# can work with those.

Upvotes: 4

Related Questions