VS2010, you cannot embed the interop type "...", instead, use the workaround for the applicable interface

Source: Internet
Author: User

Original: VS2010, cannot embed Interop type "...", use workaround for applicable interface instead

1. Tip: In VS2010, when referencing COM components, there was a failure to embed the interop type "...", instead , use the appropriate interface for the error prompt.

2. Solution:

Select the DLL that was introduced in the project, right-click, select Properties, and set the embed interop type to false.

For example:

MSXML2. XMLHTTP _xmlhttp = new MSXML2. Xmlhttpclass ();

Tip cannot embed Interop type Msxml2.xmlhttpclass use the applicable interface instead

VS2010, you cannot embed the interop type "...", instead, use the workaround for the applicable interface

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.