Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a c# (.net dll) and I have to write a wrapper for this which will be accessed by the c++ client . Please provide the link which contain steps for doing this.
Posted

1 solution

If you have the sources of the .net dll, the easier way to go is to make the relevant classes COM visible. After re-building, register the dll with regasm and access it from non-managed C++ like any other COM dll.
 
Share this answer
 
Comments
Rupesh Mathur 14-Feb-13 4:53am    
Thanks for the reply . But if its not possible to do the change in the .net dll then i feel we have to create a wrapper which my un-managed c++ client will access. I got info that there are two method to create it 1> Either to develop COM wrapper in C# and then import the .tlb in the un-managed c++ client code. 2> Make the wrapper in c++/cli . Please let me know which method is good.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900