I install MonoDevelop, GTK# and stuff. I open some Cairo tutorials (following the advice given here). I create a new GTK# project in MonoDevelop and add the Cairo library to the references. Using this tutorial, I create an expose event for a DrawingArea in a simple GTK form. Code is the following:
protected void OnDrawingAreaExposed (object obj, Gtk.ExposeEventArgs args)
{
DrawingArea drawArea = (DrawingArea)obj;
Cairo.Context ctx = Gdk.CairoHelper.Create(drawArea.GdkWindow);
PointD p1,p2,p3,p4;
p1 = new PointD (10,10);
p2 = new PointD(100,100);
ctx.MoveTo(p1);
ctx.LineTo(p2);
((IDisposable)ctx).Dispose();
}
Whe running the app, nothing is drawn. Ok, I assume that cairo lib is not installed in system. I download it from GTK+ page, put in to folder, where project executable lies - and BANG! - app crashes (System.DllNotFoundException). In result of all of the above I have a question - is it possible for one to use Cairo in Mono apps on Winows?
P.S. Will add error window screenshot later, if it's of any help.