[Mono-list] gdiplus

Pedro Santos pre@oninetspeed.pt
Fri, 19 Mar 2004 16:47:06 +0000


--=-83fuJwsIexXnS7YXozZp
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Jordi:

# pkg-config --modversion libgdiplus
0.2
# pkg-config --modversion cairo
0.1.18

This is the example:
//---------------------------------------------------------------------
namespace Microsoft.Samples.WinForms.Cs.SimpleHelloWorld {
    using System;
    using System.Windows.Forms;

    public class SimpleHelloWorld : Form {

        [STAThread]
        public static int Main(string[] args) {
            Application.Run(new SimpleHelloWorld());
            return 0;
        }

        public SimpleHelloWorld() {
            this.Text =3D "Hello World";
        }
    }
}

And this is the complete output:
//---------------------------------------------------------------------
$ mono h.exe
When you are running with a native NT directory specify
'Profile=3D<profiledirectory>' or disable loading of Windows
registry (LoadWindowsRegistryFiles=3DN)
=20
Unhandled Exception: System.EntryPointNotFoundException:
GdipCreateFontFamilyFromName
in <0x00053> (wrapper managed-to-native)
System.Drawing.GDIPlus:GdipCreateFontFamilyFromName
(string,intptr,intptr&)
in <0x0007c> System.Drawing.FontFamily:.ctor
(string,System.Drawing.Text.FontCollection)
in <0x00012> System.Drawing.FontFamily:.ctor (string)
in <0x00056> (wrapper remoting-invoke-with-check)
System.Drawing.FontFamily:.ctor (string)
in <0x0005b> System.Drawing.Font:.ctor
(string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bo=
ol)
in <0x00028> System.Drawing.Font:.ctor
(string,single,System.Drawing.FontStyle)
in <0x00083> (wrapper remoting-invoke-with-check)
System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle)
in <0x00039> System.Drawing.Font:FromHfont (intptr)
in <0x00018> System.Windows.Forms.Control:get_DefaultFont ()
in <0x00055> System.Windows.Forms.Control:get_Font ()
in <0x0002d> System.Windows.Forms.Control:OnHandleCreated
(System.EventArgs)
in <0x00026> System.Windows.Forms.Form:OnHandleCreated
(System.EventArgs)
in <0x0025a> System.Windows.Forms.Control:CreateHandle ()
in <0x0000a> System.Windows.Forms.Form:CreateHandle ()
in <0x00033> System.Windows.Forms.Control:CreateControl ()
in <0x0004f> (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:CreateControl ()
in <0x00015> System.Windows.Forms.Application:Run
(System.Windows.Forms.Form)
in <0x00024>
Microsoft.Samples.WinForms.Cs.SimpleHelloWorld.SimpleHelloWorld:Main
(string[])
=20



On Fri, 2004-03-19 at 14:49, Jordi Mas wrote:
> En/na Pedro Santos ha escrit:
> > Well, I am having some troubles. I just installed mono-0.31, libgdi,
> > wine, etc. I am just running a simple "Hello World" and I got this:
> >=20
>=20
> Hello Pedro,
>=20
> Can you make sure that you are running libgdiplus 0.2? If this is the cas=
e,=20
> please send me the example that you are trying to run and gives you that =
error.
>=20
> Thanks Pedro,
>=20
> Jordi,
--=20
Pedro Santos <www.psantos.net>
"Si minor plus est ergo nihil sunt omnia..."

--=-83fuJwsIexXnS7YXozZp
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAWyQK00b8YfrkjegRAsBrAJ9o0qx+SUPXhfZ0TSO+leHL/PxXRgCeOza0
ACcZpWiYcEF4NG60dAwoePU=
=N0gd
-----END PGP SIGNATURE-----

--=-83fuJwsIexXnS7YXozZp--