471,337 Members | 1,234 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

C# dll question

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++ ?
Jul 4 '08 #1
1 1035
Terry wrote:
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
Jul 4 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Stevey | last post: by
53 posts views Thread by Jeff | last post: by
56 posts views Thread by spibou | last post: by
2 posts views Thread by Allan Ebdrup | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.