mail-archives/gtk-sharp-list/2004-April/003742.html

75 строки
2.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] ListBase struct
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mkestner%40ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="003741.html">
<LINK REL="Next" HREF="003743.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] ListBase struct
</H1>
<B>Mike Kestner
</B>
<A HREF="mailto:mkestner%40ximian.com"
TITLE="[Gtk-sharp-list] ListBase struct">mkestner@ximian.com
</A><BR>
<I>Fri, 02 Apr 2004 15:33:32 -0600</I>
<P><UL>
<LI> Previous message: <A HREF="003741.html">[Gtk-sharp-list] ListBase struct
</A></li>
<LI> Next message: <A HREF="003743.html">[Gtk-sharp-list] lots of hot .pc on .pc action
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3742">[ date ]</a>
<a href="thread.html#3742">[ thread ]</a>
<a href="subject.html#3742">[ subject ]</a>
<a href="author.html#3742">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Fri, 2004-04-02 at 14:20, Jeremy Wells wrote:
&gt;<i> GnomeVFSMimeApplication self = new GnomeVFSMimeApplication();
</I>&gt;<i> self = (GnomeVFSMimeApplication) Marshal.PtrToStructure (raw,
</I>&gt;<i> self.GetType ());
</I>&gt;<i>
</I>&gt;<i> with the very last line being the problem. I can't understand how
</I>&gt;<i> ListBase is even involved in this. can anyone help me out? Original file
</I>&gt;<i> is attached.
</I>
It's because of this line in your GnomeVFSMimeApplication declaration:
public List supported_uri_schemes;
That field is most likely a GList*, and should be represented as a
private IntPtr field. You can expose a GLib.List property to wrap the
raw list pointer in the field.
--
Mike Kestner &lt;<A HREF="mailto:mkestner@ximian.com">mkestner@ximian.com</A>&gt;
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="003741.html">[Gtk-sharp-list] ListBase struct
</A></li>
<LI> Next message: <A HREF="003743.html">[Gtk-sharp-list] lots of hot .pc on .pc action
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3742">[ date ]</a>
<a href="thread.html#3742">[ thread ]</a>
<a href="subject.html#3742">[ subject ]</a>
<a href="author.html#3742">[ author ]</a>
</LI>
</UL>
</body></html>