Integrating vc++ code with c#
-
Hi , Can any one please let me know how can i use the vc++ code in c# using the concept of Managed and Unmanaged code? Bcoz i dot have any idea about the interface so please suggest me about how i can go ahead. Thanks
-
Hi , Can any one please let me know how can i use the vc++ code in c# using the concept of Managed and Unmanaged code? Bcoz i dot have any idea about the interface so please suggest me about how i can go ahead. Thanks
-
Hi , Can any one please let me know how can i use the vc++ code in c# using the concept of Managed and Unmanaged code? Bcoz i dot have any idea about the interface so please suggest me about how i can go ahead. Thanks
RajArchana wrote:
Can any one please let me know how can i use the vc++ code in c# using the concept of Managed and Unmanaged code? Bcoz i dot have any idea about the interface so please suggest me about how i can go ahead.
You can write a mixed-mode DLL (using C++/CLI) that will expose a managed interface that C# callers can use. You'd have to know C++/CLI syntax, and how to wrap native classes for consumption from managed callers. Check out the C++/CLI section on Code Project and MSDN for a bunch of articles on this topic. Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
Currently working on C++/CLI in Action for Manning Publications.