Click here to Skip to main content
12,621,155 members (35,013 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
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 12-Feb-13 19:17pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 13 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100