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" <[EMAIL PROTECTED]>
To: <[email protected]>
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: [EMAIL PROTECTED]
Web: http://www.studioartlan.com/

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to