C# dll question

T

Terry

i've 2 questions
1) I have a c# dll being built managed.
Can i call it from C++ unmanaged code ?
If it is able to call , how does the C++ compiler know the calling
convention of C#.

Does .NET gc take care of the memory management related to the
methods exposed by C# dll ?


2) I know that you can call C apis from C++.
So does C# apis know the calling convention of C++ ?

is it similar to another c++ method calling another C++ method ?
Again does C# compiler know
the calling convention of C++ ?
 
A

Arne Vajhøj

Terry said:
i've 2 questions
1) I have a c# dll being built managed.
Can i call it from C++ unmanaged code ?
If it is able to call , how does the C++ compiler know the calling
convention of C#.

Does .NET gc take care of the memory management related to the
methods exposed by C# dll ?


2) I know that you can call C apis from C++.
So does C# apis know the calling convention of C++ ?

is it similar to another c++ method calling another C++ method ?
Again does C# compiler know
the calling convention of C++ ?

Unmanaged C++ -> C# can be done by having the C# code expose
a COM interface in which case COM conventions handles the
interoperability.

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