On Mon, 2009-04-27 at 11:42 -0700, MardyTardi wrote:
> =
> public Map () : base (IntPtr.Zero)
> {
> if (GetType () != typeof (Map)) {
> CreateNativeObject (new string [0], new GLib.Value[0]);
> return;
> }
>
You simply write a new constructor using the already existing one, for
instance:
public Map(string propertyName, string propertyValue) : this()
{
Add(propertyName, propertyValue)
}
Hope it helps,
On Mon, Apr 27, 2009 at 3:42 PM, MardyTardi wrote:
>
> Michael Hutchinson wrote:
> > On Sun, Apr
Michael Hutchinson wrote:
> On Sun, Apr 26, 2009 at 11:38 AM, mardy.tardi
> wrote:
>> I guess that by modifying the C library by adding more _new() methods I
>> can
>> get more constructors in the C# API, but is there some other way around
>> it,
>> without modifying the C API?
>
> Use .custom fi
On Sun, Apr 26, 2009 at 11:38 AM, mardy.tardi
wrote:
>
> I guess that by modifying the C library by adding more _new() methods I can
> get more constructors in the C# API, but is there some other way around it,
> without modifying the C API?
Use .custom files to add custom constructors into the C
Hi Alberto, you may want to try this out if GAPI does not work out for you:
http://www.codeplex.com/clrinterop/Release/ProjectReleases.aspx?ReleaseId=14120
Pinvoke Interop Assistant works much like GAPI: It will parse header files and
generate the Pinvokes for you. It's not perfect, but it worked
Hi all, I hope this is the right list for this kind of questions.
I have a GObject-based library, written in C, which I want to use from a C#
application (f-spot). I generated the bindings with the GAPI tools, but I'm
not satisfied with the result. The problem is that the C API for that
GObject p