How to use a C# dll in Native C++ App

I know that this forum was intended for C++ and UNIX techies. But still I would feel, this one can also enhance our thinking horizons …
So while looking at the new features provided by Microsoft in it .Net Libraries, I was astronished how much money microsoft had spent to develop such architectural solutions and publishing for the users.
So I got an idea of using one such libraries which was a C# dll from my native C++ application without re-writing it.

Can anybody suggest me, an idea of doing it ??

2 Comments »

  1. hemanth said

    C# dll can be used from C++( COM) using CCW.
    CCW stands for COM callable wrapper.
    Using CCW u shud be able to call an C# dll

  2. KC said

    The method of COM Callable Wrapper asks for a compilation of the .Net Source code with a strong key etc.

    How can I use the already existing DLL in C++ app, without recompiling it (because in many cases we will not have source code of the library)?

RSS feed for comments on this post · TrackBack URI

Leave a Comment