C++ library in C# project .net visual studio | Sololearn: Learn to code for FREE!

+1

C++ library in C# project .net visual studio

You probably already know that all dotNET languages are "compatible" with each other since they all compiles in the same IL code. So you can use libraries from, for example, visual c++ in visual c# project if you want to. So how to do so? I would be glad if you could help me. P.S: In c# I guess it's probably something like "using ..."

11/9/2018 4:39:34 AM

Alex Wanderman

3 Answers

New Answer

+7

I'm not good at it, but maybe try this https://stackoverflow.com/questions/772041/using-c-library-in-c-sharp

+3

You need to had the compiled library to your project by adding its reference (usually it's a DLL file) Then at the beginning of the file where you want to use that library, you will write: using [library name] ; Where [library name] is the actual name of the library you want to use whitout brackets.

+1

There is some of my work on this topic (check this out on mobile). https://www.sololearn.com/post/45368