[Mono-devel-list] Re: S.D.gdiplus implementation

Miguel de Icaza miguel at ximian.com
Wed Jan 28 23:17:07 EST 2004


Hello,

> > Brush *miggy_brush_init ()
> > {
> > 	MyBrush *m = g_new0 (MyBrush, 1);
> > 	m->base.vtable.init = miggy_init;
> > 	m->base.vtable.paint = miggy_paint.
> > 	m->v = 1;
> > 
> > 	return m;
> > }
> 
> I hate to ask the obvious question here: why not use C++ since that is
> exactly what it's designed to do?

The API exposed by GDI+ is a C-based API (The "Flat API").  There is a
different C++ based API layered on top of the above.

Even if this was written in C++, every base-class entry point would
have to be manually wrapped.

Miguel.





More information about the Mono-devel-list mailing list