By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,421 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,421 IT Pros & Developers. It's quick & easy.

C# dll question

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.