Borland Delphi = Kylix?

steffi112358

Cadet 4th Year
Registriert
Nov. 2004
Beiträge
73
Hi,
wir haben jetzt in der Schule mit Delphi angefangen. Natürlich mehr objektorientiert, so das ich mit nem normalem Editor nicht zurecht kommen würde. (ich nutze Linux)

Jetzt hab ich im Internet nachgeguckt und als Alternative Borland Kylix gefunden.
Wollt fragen, ob ich Probleme bekomme, wenn ich aus der Schule was mitnehme um es Zuhause zu bearbeiten (Schule: Borland Delphi 6.0 Personal).

Hab auf dem Pc meiner Geschwister Borland Delphi 8.0 Enterprise laufen, aber da kann ich nicht immer ran und wenn dann nur 30min und meine Infolehrerin hat gesagt, dass es zwischen 6.0 und 8.0 Probleme geben kann.

Hat vll jemand Erfahrung mit Kylix und Delphi6.0.

Welche Version von Kylix is mit 6.0 gleich zu setzen?

Ich hab auch gelesen, dass man mit Kylix in Delphi und C/C++ programmieren kann. Das müsste man dann klar trennen können, also dürfte es damit keine Probleme geben, oder?

Steffi
 
Also Programme von Delphi 6 laufen auf jeden Fall auf 7 und Delphi 2005.
Delphi 8 war die .Net Version mit der du kaum Win32 Anwendungen hinbekommst. Das dürfte nicht funktionieren.

Saug dir doch die Personalversion von Delphi 7, die kostet nix und da du nichts kommerzielles machts ist das kein Problem. Die Komponenten die da fehlen brauchst du für den Schulunterricht auch bestimmt nicht :)

Mfg Toni
 
toniguenther schrieb:
Also Programme von Delphi 6 laufen auf jeden Fall auf 7 und Delphi 2005.
Delphi 8 war die .Net Version mit der du kaum Win32 Anwendungen hinbekommst. Das dürfte nicht funktionieren.

Saug dir doch die Personalversion von Delphi 7, die kostet nix und da du nichts kommerzielles machts ist das kein Problem. Die Komponenten die da fehlen brauchst du für den Schulunterricht auch bestimmt nicht :)

Mfg Toni


wo gibts es den die personal version?
 
Die 6 bekomm ich von meiner Lehrerin (oder kann sie auch runterladen),das ist klar. Wir sollen uns dann nur ne Lizenz holen und das ist auch kostenlos.

Aber mein Problem ist Linux! Delphi läuft laut Borland NUR unter Windows...NIX Linux!
 
Kylix ist gegenüber Delphi 6 stark eingeschränkt, weil zB die gesammten Win3.11 und Win32 Komponenten und alle davon abgeleiteten fehlen.

Für mich war Kylix vor nem halben Jahr damit keine Alternative zu Delphi6, was ich auf Arbeit benutz.

Da bleibt nur VM-Ware und Win emulieren oder gleich Win installieren. Mit Wine oder so lässt sich Delphi5/6 nämlich au ned installieren.
 
Projekte, die mit Delphi 6 Personal erstellt wurden, koennen nicht direkt in Kylix verwendet werden. In Delphi 6 Personal fehlen die CLX Komponenten (Cross Platform Development Library) und nur VCL wird unterstuetzt:

http://www.borland.com/delphi/pdf/del6_feamatrix.pdf

Mit recht viel Aufwand kann trotzdem ein Projekt konvertiert werden, wie aus der Hilfe zu Delphi 7 Professional ersichtlich ist.

Hier koennen die Hilfedateien heruntergeladen werden:

http://info.borland.com/techpubs/delphi/

Du wirst aber wahrscheinlich nur in den Professional/Enterprise Hilfen die entsprechenden Funktionen beschrieben finden. Ausserdem bin ich mir nicht sicher, ob das die kompletten Hilfedateien sind oder nur Updates.

Zumindest bei Delphi 7 Professional ist der komplette Konvertierprozess beschrieben.

Hier kurz aus der Hilfe zitiert:

[--- SNIP ---]

You can develop cross-platform 32-bit applications that run on both the Windows and Linux operating systems. Cross-platform applications use CLX components from the Borland Component Library for Cross-Platform (CLX) and don't make any operating system-specific API calls.

Weiter:

If you are porting a VCL application to Linux that you want to run on both Windows and Linux, you may need to modify your code or use conditional compiler directives to indicate sections of the code that apply specifically to Windows or Linux.

To modify your VCL application so that it can run on Linux, follow these general steps:

1 In Windows, open the project containing the VCL application you want to change.
2 Rename your form files (.dfm) to cross-platform form files (.xfm). For example, rename unit1.dfm to unit1.xfm. Or add an $IFDEF compiler directive. An .xfm form file works on both Windows or Linux but a .dfm form only works on Windows.

Change {$R *.dfm} to {$R *.xfm} in the implementation section.

3 Change all uses clauses in your source file so they refer to the correct units in VisualCLX. (See Comparing WinCLX and VisualCLX units for information.)

For example, change the following uses clause:

uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;

to the following:

uses SysUtils, Types, Classes, QGraphics, QControls, QForms, QDialogs, QStdCtrls;

4 Save the project and reopen it. Now the Component palette shows components that can be used in CLX applications.

Note

Some Windows-only nonvisual components can be used in cross-platform applications but only work in Windows cross-platforms applications. If you plan to compile your application on Linux as well, either do not use the nonvisual WinCLX components in your applications or use $IFDEFs to mark these sections of the code as Windows only. You cannot use the visual part of WinCLX with VisualCLX in the same application.

5 Rewrite any code that requires Windows dependencies by making the code more platform-independent. Do this using the runtime library routines and constants. (See Cross-platform database applications for information.)
6 Find equivalent functionality for features that are different on Linux. Use conditional compiler directives such as $IFDEFs (sparingly) to delimit Windows-specific information. (See Using conditional directives for information.)

For example, you can use conditional compiler directives for platform-specific code in your source files:

{$IFDEF MSWINDOWS}
IniFile.LoadfromFile('c:\x.txt');
{$ENDIF}
{$IFDEF LINUX}
IniFile.LoadfromFile('/home/name/x.txt');
{$ENDIF}

7 Search for references to pathnames in all the project files.

Pathnames in Linux use a forward slash / as a delimiter (such as /usr/lib) and files may be located in different directories on the Linux system. Use the PathDelim constant (in SysUtils) to specify the path delimiter that is appropriate for the system. Determine the correct location for any files on Linux.
Change references to drive letters (for example, C:\) and code that looks for drive letters by looking for a colon at position 2 in the string. Use the DriveDelim constant (in SysUtils) to specify the location in terms that are appropriate for the system.

In places where you specify multiple paths, change the path separator from semicolon ( ; ) to colon ( : ). Use the PathSep constant (in SysUtils) to specify the path separator that is appropriate for the system.
Because file names are case-sensitive in Linux, make sure that your application doesn't change the case of file names or assume a certain case.

See Programming differences on Linux.
 
Zuletzt bearbeitet:
Wenn deine Geschwister Delphi8 Enterprise haben, dass ist in dem Delphi-Karton auch eine Delphi7 CD dabei.

(Es sei denn ihr habt ein Update, aber dann seid ihr ja auch im besitz einer älteren Version)

Vielleicht sind sie ja so lieb und installieren es bzw. lassen dich das zusätzlich installieren.
 
Zurück
Oben