mail-archives/mono-list/2003-October/016665.html

71 строка
2.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] Determining the platform at compile and run time
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:fjh%40cs.mu.OZ.AU">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="016661.html">
<LINK REL="Next" HREF="016662.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] Determining the platform at compile and run time
</H1>
<B>Fergus Henderson
</B>
<A HREF="mailto:fjh%40cs.mu.OZ.AU"
TITLE="[Mono-list] Determining the platform at compile and run time">fjh@cs.mu.OZ.AU
</A><BR>
<I>Fri, 31 Oct 2003 12:31:43 +1100</I>
<P><UL>
<LI> Previous message: <A HREF="016661.html">[Mono-list] Determining the platform at compile and run time
</A></li>
<LI> Next message: <A HREF="016662.html">[Mono-list] System.Windows.Forms.ComboBox Perculiarities
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16665">[ date ]</a>
<a href="thread.html#16665">[ thread ]</a>
<a href="subject.html#16665">[ subject ]</a>
<a href="author.html#16665">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On 30-Oct-2003, A Rafael D Teixeira &lt;<A HREF="mailto:rafaelteixeirabr@hotmail.com">rafaelteixeirabr@hotmail.com</A>&gt; wrote:
&gt;<i> Here is a small twist, save it as Mono.Environment.cs and compile as a
</I>&gt;<i> library to use or as an executable to just test:
</I>&gt;<i>
</I>&gt;<i> -------
</I>&gt;<i> // How can I tell dynamically what platform my code is running on?
</I>&gt;<i> //
</I>&gt;<i> // This is one possible approach, contributed by Aleksey Demakov
</I>&gt;<i> (<A HREF="mailto:avd@openlinksw.com">avd@openlinksw.com</A>)
</I>&gt;<i> // And encapsulated by Rafael Teixeira (<A HREF="mailto:rafaelteixeirabr@hotmail.com">rafaelteixeirabr@hotmail.com</A>)
</I>
That code does the wrong thing when running under Rotor or DotGNU.
--
Fergus Henderson &lt;<A HREF="mailto:fjh@cs.mu.oz.au">fjh@cs.mu.oz.au</A>&gt; | &quot;I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit&quot;
WWW: &lt;<A HREF="http://www.cs.mu.oz.au/~fjh">http://www.cs.mu.oz.au/~fjh</A>&gt; | -- the last words of T. S. Garp.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="016661.html">[Mono-list] Determining the platform at compile and run time
</A></li>
<LI> Next message: <A HREF="016662.html">[Mono-list] System.Windows.Forms.ComboBox Perculiarities
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16665">[ date ]</a>
<a href="thread.html#16665">[ thread ]</a>
<a href="subject.html#16665">[ subject ]</a>
<a href="author.html#16665">[ author ]</a>
</LI>
</UL>
</body></html>