dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU] Do you know any method to invoke...


From: Bryan Bulten
Subject: Re: [DotGNU] Do you know any method to invoke...
Date: Sat, 12 Feb 2005 11:37:42 -0800

 
> I wish to invoke C# methods from C++ code body.
> 
> How can I access it?
> 
> Is there anyone who solved such case?
 
The best way to do this is to write a C wrapper for the C++ code, and
use P/Invoke on the C wrapper.

wx.NET does this (C wrapper, libwx-c, for wxWidgets, a C++ library), as
do many other wrappers.  Another wx.NET developer is working on a SWIG
wrapper, which will generate the C# wrapper automatically.

The other way to go is to use MS's C++.NET, which would require
modifying the C++ code body, and most likely only compile to a MS PE
executable format, which isn't cross-platform.


Cheers.

-- 
Bryan Bulten
http://www.bulten.ca/
http://wxnet.sourceforge.net/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]