Google Answers Logo
View Question
 
Q: Calling Managed C# Code from Unmanaged C ( No Answer,   1 Comment )
Question  
Subject: Calling Managed C# Code from Unmanaged C
Category: Computers > Programming
Asked by: cjastramatgmailcom-ga
List Price: $10.00
Posted: 10 Mar 2006 13:54 PST
Expires: 09 Apr 2006 14:54 PDT
Question ID: 705849
I need to create a C# interface for an old C library that uses
callback functions for events.  How can I call a C# object or function
from unmanaged C?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Calling Managed C# Code from Unmanaged C
From: jiangsheng-ga on 22 Mar 2006 10:21 PST
 
You can write a function to call a C# object in a managed C++ or
C++/CLI DLL( new in VC2005), and have your unmanaged C program call
that DLL. But if you just want to expose your lib to .Net, a mixed
managed/native DLL written in managed C++ or C++/CLI will do.

Reference
http://msdn.microsoft.com/msdnmag/issues/04/12/CQA/
http://msdn.microsoft.com/msdnmag/issues/02/08/CQA/
http://msdn.microsoft.com/msdnmag/issues/05/02/CATWork/

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy