|
|
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? |
|
There is no answer at this time. |
|
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/ |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |