Click here to Skip to main content
11,646,635 members (73,295 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# For
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 18: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 at 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
0 jyo.net 510
1 Sergey Alexandrovich Kryukov 478
2 OriginalGriff 428
3 CPallini 334
4 F-ES Sitecore 309
0 OriginalGriff 1,253
1 jyo.net 994
2 DamithSL 896
3 Sergey Alexandrovich Kryukov 833
4 CPallini 720


Advertise | Privacy | Mobile
Web03 | 2.8.150731.1 | Last Updated 13 Feb 2013
Copyright © CodeProject, 1999-2015
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