Search code examples
c#c++dllpinvokewrapper

C# Options to best consume C++ DLLs with 1000's of functions


I have around 5 C++ DLLs which have thousands of functions and so on. So the thing is, I kind of fell in love with WPF which is in C#(as I understand). But this is another language, so after doing a bit of research I found out that I could create a wrapper, and so I did(The wrapper was created in C++/CLI). The wrapper has some few conversions, and it worked fine. I also heard about Pinvoke, but my problem with all of these is that what if I don't have time to convert thousands of functions and variables? What do i then do? Is there some kind of fast way?

PS. Im using Visual Studio 2012

Thank You


Solution

  • You may want to check out SWIG.

    SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.