using Interoperation to call Managed code from COM

T

Tony Johansson

Hi!

This question is just for understanding. I have found this example in Code
project.
I have a COM component and a .NET class library.
The COM will call the .NET type library that is sitting in between the COM
and the .NET library and the type library will call the .NET library. This
type library is sort of encapulating the .NET library
The .NET library has as the extension as all know the famous DLL and the
type library has extension TLB.

I have noticed that the .NET library must be registered in the registry.
But what about the type library that is sort of a COM thingy does this need
to be registered in the registry ?

//Tony
 
A

Arne Vajhøj

This question is just for understanding. I have found this example in Code
project.
I have a COM component and a .NET class library.
The COM will call the .NET type library that is sitting in between the COM
and the .NET library and the type library will call the .NET library. This
type library is sort of encapulating the .NET library
The .NET library has as the extension as all know the famous DLL and the
type library has extension TLB.

I have noticed that the .NET library must be registered in the registry.
But what about the type library that is sort of a COM thingy does this need
to be registered in the registry ?

No.

And it is not a wrapper either.

It contains a description of the API that compilers/IDE's
can use to generate a wrapper from.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top