PC Review


Reply
Thread Tools Rate Thread

C# dll question

 
 
Terry
Guest
Posts: n/a
 
      4th Jul 2008
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++ ?
 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      4th Jul 2008
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
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Perhaps and off topic question....but could use some help with video question.....I don't need codec help, just a general question. Bret Miller DIY PC 0 13th Oct 2006 12:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:31 AM.