Can we use COM objects in a C # project?

I created a C # COM object following the guide. http://www.codeproject.com/Articles/18939/C-Com

Now I want to use this in C #. When I go to add the link \ com \ myComObject, it gives me an error. It states that the library was imported from the .NET assembly and cannot be added. Instead, add a reference to the .NET assembly.

+3
source share
1 answer

I think he says this is a com assembly. com, and you must add the .net assembly directly as .net assenbly. The technique you're referring to is how to write a .net assembly that you can reference from VB6. There is no need to add this as a com link to a .net project, just add it as a normal .net link.

+2
source

Source: https://habr.com/ru/post/1399896/


All Articles