[Mono-list] Example C Wrappers

Matthew Metnetsky met@uberstats.com
Tue, 05 Oct 2004 10:02:28 -0400


Hello,

On Mon, 2004-10-04 at 17:58, William S Fulton wrote:
> John Luke wrote:
> 
> > Hello,
> > 
> > On Mon, 04 Oct 2004 10:32:01 -0400, Matthew Metnetsky <met@uberstats.com> wrote:
> > 
> >>Hello,
> >>
> >>On Mon, 2004-10-04 at 09:35, Cory Nelson wrote:
> >>
> >>>what type of code are you trying to wrap?
> >>
> >>Subversion Client API.
> >>
> >>
> >>
> >>
> >>>On Mon, 04 Oct 2004 09:33:35 -0400, Matthew Metnetsky <met@uberstats.com> wrote:
> >>>
> >>>>I was wondering if anyone could point me to some _good_ articles on
> >>>>wrapping C code in C#?  I've tried the ?old? documentation in gtk-sharp,
> >>>>but it just seems to generate errors for me.
> >>>>
> >>>>Thanks,
> >>>>
> >>>>~ Matthew
> >>
> > 
> > Jon Pryor wrote a fine interop guide:
> > http://www.jprl.com/~jon/interop.html
> > which is also in the monkeyguide still I think  Other than that I
> > would look on google.
> > 
> > The gtk-sharp generator will only work with glib-based API's (I don't
> > think subversion is one).  If anyone finds a problem with it being
> > incorrect or out of date please let me know, and point to what exact
> > location you are looking at.  Then, I will likely fix it.
> 
> Subversion uses SWIG http://www.swig.org to provide wrappers for a number of 
> different languages, but I'm not sure if they have provided the SWIG interface 
> files for C# yet. Best ask on the subversion mailing list. If they aren't 
> available, it should be relatively painless to create the .net interface files 
> off the Java interface files.
> 
> William

Well that would be very nice.

Thanks everyone... the articles are definitely helpful.

~ Matthew