[Mono-winforms-list] using Windows.Forms on multiple platforms

Kornél Pál kornelpal at hotmail.com
Sat Nov 19 07:04:12 EST 2005


Hi,

The only thing you have to do is to write platform independent code:
- don't use P/Invoke to call platform dependent functions (unless you
implement the same functionality for each platform)
- use IntPtr for pointers (ensures 32-bit and 64-bit compatibility)
- don't assume little endian integers (don't convert integers to byte arrays
unless you deal with endianness)

Note that usually the above things are not required.

The rest of your code that uses the class library will be plaform idependent
and no special action is needed.

Kornél

----- Original Message -----
From: "Marko Zmak" <xmak at studioartlan.com>
To: <mono-winforms-list at lists.ximian.com>
Sent: Friday, November 18, 2005 8:24 AM
Subject: [Mono-winforms-list] using Windows.Forms on multiple platforms


> Hi, I'm very interested in using Mono, but I would like to know one
> thing first. Is it possible in Mono to use Windows.Forms Linux and
> Windows? But without having to change the code.
>
> I would really like to know if I can write one program that uses
> Windows.Forms and run it both on Linux and Windows? And if it's
> possible, could someone explain me how.
>
> --
> Marko Žmak, dipl.ing.mat.
> Mob: +385 98 212 801
> Email: xmak at studioartlan.com
> Web: http://www.studioartlan.com/
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>



More information about the Mono-winforms-list mailing list