Unmanaged C++ to C# interop (replacing CCW)

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I want to write a C++/CLI wrapper which will help me in providing interop between unmanaged C++ and C#, basically I want to do the same operation which is done using CCW. My flow would look like this:

Unmanaged C++  --> C++/CLI Wrapper  --> C#  (i.e. the unmanaged c++ client talks to the C# server)

I have searched for this all over the web and in this forum but have not been able to get any definite answer as to how this can be achieved.

I would like to make it clear that I cannot make the unmanaged C++ application CLR compliant, i.e. it cannot be built with /CLR option, because its and existing legacy application.

Any help with references to study materials, suggestions, web links, samples would be helpful.

Thanks in advance.

Kuldeep.

View the full article
 
Back
Top