Re: C# oder C++?

From: Immo Landwerth (mail_ignored_at_web.de)
Date: 06/22/04


Date: Tue, 22 Jun 2004 06:46:04 -0700

Joachim Fuchs wrote:

> Meine Meinung zur Plattformunabhängigkeit von Java:
> Java-Programme sind plattformunabhängig, solange die Plattform nicht
> "Windows" heißt. Java-Programme unter Windows fallen in der Regel
> sofort durch untypische und unpraktische GUIs auf (z.B. seltsame
> Dialoge zum Öffen / Speichern von Dateien). Mal ganz abgesehen von der
> Ausführungsgeschwindigkeit und dem VM/JIT-Wirrwarr.

Das stimmt. Die einzige Java Anwendung, die mir durch eine gute GUI
aufgefallen wäre ist Eclipse mit dem hauseigenen SWT.

AWT, Swing und wie alle diese Krankheiten heißen, haben es im Grund
fast vollständig

> Und C++? Was ist denn daran plattformunabhängig? Klar, ein C++
> Konsolenprogramm mit "Hallo Welt"-Ausgabe lässt sich für alle
> Plattformen compilieren. Aber das war's dann auch schon. Sobald man
> Fenstertechnik verwenden will, benötigt man eine entsprechende
> Klassenbibliothek. Und damit ist man dann auch meist auf ein
> bestimmtes BS festgelegt. Ein MFC-Programm wird wohl kaum unter Linux
> laufen (außer im Windows-Simulator).

Natürlich. Aber schau Dir Eclipse an. Gut, das ist kein C++, aber das
Kernproblem war dasselbe. Die haben sich kurzerhand eine eigenes
Toolkit gebaut um für Windows, Mac und Linux native Steuerelemente
verwenden zu können.

Wenn man vernünftig zwische GUI und Anwendungscode unterscheidet, kann
man den Source Code überführen.

Ich gebe zu, für viele Anwendungen ist diese Aufgabe absolut oversized
und nicht trivial, aber wenn es braucht, muss man auch den Preis dafür
bezahlen.

Entweder Klicki-Bunti mit Nachdenken oder Klick-Bunti nur für Windows.
Eines geht nur. :)

-- 
Immo Landwerth - Visual Studio 2003 - C# - XanaNews 1.16.3.1


Relevant Pages

  • Re: A little musing on Linux ( was Re: Zip files to multiple floppies)
    ... > various distributions Of linux have made me think a little harsh about ... > and troubles far more than Windows. ... The amount of extra work to program a gui ... Mounting filesystems for example - windows computers only ...
    (Fedora)
  • Re : Re: A little musing on Linux ( was Re: Zip files to multiple floppies)
    ... >> and troubles far more than Windows. ... >> Hope we will all be part of the Linux evolution into a nice desktop OS ... The amount of extra work to program a gui ... This is also one of the limiting features of a windows ...
    (Fedora)
  • Re: Flame Bait! Windows vs: The Unices
    ... does Linux provide a "Linux" window manager, ... MS-Windows, however, *only* provides a graphical environment. ... )> You do not need a GUI to type make. ... You don't need a GUI to have multiple windows, ...
    (comp.programming)
  • Re: How do old-school emacs/gcc/gdb hackers do their coding?
    ... write portable code, that runs on windows, linux, solaris etc. ... For gui, I dabbled with using tcl/tk combined with C code to build a portable ...
    (comp.os.linux.development.apps)
  • Re: Linux, the final decision
    ... I have a stock standard Xandros installation. ... performs essentially the exact same process as windows... ... apps via Xandros Networks that have required a GUI restart. ... more and more people will turn to linux because LongArm ...
    (comp.os.linux.misc)

Loading