. NET Interop sucks.

Source: Internet
Author: User
There are too many problems known and unknown in Interop. Managedcode and UnmanagedCode interaction between the problem, Microsoft is not a good solution.

. NET2.0 Update Http://www.dotnetinterop.com/features/default.aspx?q=Whidbey for the interop section. The future of the update, in fact, another point of view is now inadequate.

The syntax for the interop section is also very ugly. such as "[MarshalAs (UNMANAGEDTYPE.FUNCTIONPTR)]" or "[ClassInterface (Classinterfacetype.autodual)]" such as nondescript grammar, let a person see inexplicably.

For example, SortedList can not be transferred from C # to C + +, such as C + + class can not be called by C #, such as C # call COM often some strange problems, such as mixed-programming DLLs are often in the loading of deadlock, such as ASP.net loading Office components often error.

And so on and so on.

Therefore, keep in mind the principle of m$: Any products are to v3.0 above is easy to use.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.