[Mono-list] Using Mono to compile for .NET Compact Framework (PocketPC)

A Rafael D Teixeira rafaelteixeirabr@hotmail.com
Mon, 08 Sep 2003 09:27:25 -0300


>From: "Enzo Michelangeli" <em@who.net>
>
>I'm new to mono and CSharp, although I'm fluent in C and Java. I recently
>installed the Win32 version of Mono 0.26 on a Win98SE machine, and tried
>some simple compilations: a simple console "Hello world" program and a
>couple of notepads, namely:
>
>http://www.c-sharpcorner.com/1/NotePadAM.asp
>http://www.hewener.net/projekte.htm#sdenotepad
>
>All appear to work (despite the fact that the docs say that Win2K or XP
>are required for lack of sufficient Unicode support in '98): the three
>binaries run as expected on Win98.

Win98SE is in better shape than plain Win98, but Unicode problems do will 
appear...
Mono has lots of Unicode-handling logic in itself, it doesn't  just wrap OS 
specific functions, but...

>HOWEVER, only one of the three (namely, the "Hello world" console
>application) runs correctly on my PocketPC PDA (running Windows Mobile
>2003): the two GUI apps die without any warning, despite the fact that at
>least the second one was coded explicitely for PocketPC.

Unsurprisingly,

>I also tried, during compilation, to reference assemblies belonging to the
>"Microsoft .NET Compact Framework 1.0 SP1", with command lines such as:
>
>mcs -L "C:\Program Files\Microsoft .NET Compact Framework 1.0
>SP1\netcf.core.ppc3.ARM.cab" -L "C:\Program Files\Microsoft .NET Compact
>Framework 1.0 SP1\netcf.all.wce4.ARMV4.cab" -r system -r system.drawing -r
>system.windows.forms -o notepad.exe  notepad.cs

I think mcs won't know how to extract assemblies from cabinet files, are you 
sure csc is able to do that?

Whatsoever, extract the assemblies (.dll files) from the cabinet files, to a 
temporary directory and reference them individually, and don´t forget 
/nostdlib to avoid collisions.


Best regards,

Rafael Teixeira
Brazilian Polymath
Mono Hacker since 16 Jul 2001

_________________________________________________________________
MSN Messenger: instale grátis e converse com seus amigos. 
http://messenger.msn.com.br