Using Managed Code in C++
-
How do I go about using a managed DLL (C#.NET DLL) in unmanaged C++? I found a really cool open source C#.NET library that would be nice to use in a C++ app I am working on. I am trying to get better with C++...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
-
How do I go about using a managed DLL (C#.NET DLL) in unmanaged C++? I found a really cool open source C#.NET library that would be nice to use in a C++ app I am working on. I am trying to get better with C++...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
Sure you may find better help in the
managed C++ / CLI
[^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
How do I go about using a managed DLL (C#.NET DLL) in unmanaged C++? I found a really cool open source C#.NET library that would be nice to use in a C++ app I am working on. I am trying to get better with C++...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
You need to create a COM Callable Wrapper[^] which will expose the .Net assembly as a COM component. It can then be used from unmanaged code just like using a COM server. The following page has several links to how this can be done - Exposing .NET Framework Components to COM[^]
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)