A summary of the COM way to implement C + + calling C # code

Source: Internet
Author: User

First of all, this test is not successful, it is only feasible on this machine, and the test fails on different machines. The GUID may be incorrect or not registered successfully.

Now that we've spent the whole morning studying, I'm going to summarize

1. Online said to create an SNK certificate, but not created or can. Just can't put it in the GAC. It seems to be placed in the file's current directory as well. (GAC is a general DLL directory similar to System32, which corresponds to the DLL to be found through the UUID)

The 2.tlb file resembles a header file, and the compile phase obtains the function interface. This file is not required when compiling.

3.ClassInterface (classinterfacetype.autodual)] can be used instead of generating an additional interface. Look at this blog post specifically

4. The rest can refer to some of the online C # output COM articles

5. To compare the UUID, please refer to this section

A summary of the COM way to implement C + + calling C # code

Related Article

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.