I’ve been writing a program in C++ and noticed there is a library in C# that someone else wrote that I would like to link in to my code…. but I’m not sure how to do that. Can someone suggest something? Doubt this matters, but I’m using Windows 7 with MSVC2010.
Thanks in advance!
If you’re familiar with COM you could access the .NET library through COM. If the library doesn’t provide COM interop out of the box you could write a wrapper around it using C# and expose that through COM.
If you’re going to pull in a .NET library you should be aware that it requires a .NET runtime which may take up valuable resources. If you ware building the application in C++ for performance reasons, maybe you’re better off porting the parts of the library you need to C++.