Business has evolved. What about your technology solutions?
Get a Quote
EN
 
 
Binary Studio
Binary is valuable ideas for your business

HomeBlogTechnical

.NET Team Meeting. 11/17/2011

Today's topic was dedicated to interopability between unmanaged C++ and managed C# sides. The speaker Denis P. proposed three concepts to reach the stated goal:

  • C++/CLI language extensions as the most smooth approach. It enables a programmer to construct absolutely naturally-looking .NET classes with event sourcing, static members and properties in a convenient way.
  • C# PInvoke - can be applied to simple tasks of invoking unmanaged static library methods. More complex classes require more coding (especially creating events, since PInvoke restricts unmanaged callbacks only to call delegates from managed code). Working with .NET types from unmanaged level is also obscured.
  • COM Interop - smooth for programmers familiar with COM technology, allows to receive proper .NET classes with events but without static methods (COM architecture limitation). Creating .NET classes from COM level also possible but requires additional work.

Conclusion: for a simple interoperation it's better to use PInvoke, for some complex cases - C++/CLI language. COM is in the middle of these sides, but complex for the first try.

Leave a comment

 

We are more than happy to hear from you

Privacy policy Binary Studio will not sell or rent your information to any 3rd party vendors.
Read our privacy policy.

Subscribe to our newsletter

 

Recent Comments

Archives

Meta

 
  • Testimonials

  • Showcase

    Showcase
  • Blog

    Blog
 
 
Home page      About Us      Services      Case Studies      Blog      Prices      Contact us      Sitemap      Our Prices
Email: info@binary-studio.com    Tel: +380.62.206.84.61 Copyright 2005-2012 Binary Studio
Social