delphix does NOT work with borland kylix

For some time now many new users of this site have asked how to actually install DelphiX. For those not familiar with Delphi as a whole, this can indeed be a daunting prospect. Luckily, it's not as difficult as you may or may not think it is and here, finally, is the definitive version of how to install DelphiX. Hurrah. Please be aware that although the text below seems rather complicated, it IS really quick and easy, I've just been thorough - I'm not trying to scare you away.

The first step is to make sure you're using a version of Delphi that DelphiX supports. This means that if you have Delphi 3,4,5, 6 or 7 you are in business. If you have Delphi 1 or 2 you're out of luck as far as the newest version of DelphiX goes, but it may be possible to get a version somewhere that supports Delphi 2 (perhaps someone can enlighten me). If you've got Delphi 3,4 or 5 you can download a proper official version of DelphiX from turbo here. If you've got Delphi 6 or 7, then you need to get the altered version from here. It works in most cases, with the only problems that I'm aware of being issues involving Alpha channels. The link to the altered version was NOT originally developed by delphigamedev.com but by a totally unrelated group of people. I've since modified it to include the sample source code and help files and it is now hosted on the site. You may have better success following the instructions at turbo on altering DelphiX to work with version 6 of Delphi. I've not been able to test that everything I say here works with Delphi 4 because my version of it has gone missing along with Delphi 2. Checking down the side of the sofas proved fruitless, but I don't think you should find any problems with Delphi 4.

If you've downloaded the official version, you may be able to install DelphiX by simply running the respective Install_for3, 4 or 5 .exe file for your version of Delphi, which can be found in the Bin directory. This doesn't always work, but if it does for you, then you won't have to do anything else to get DelphiX working, and you can stop reading now. Right here. Go away. Okay, for the rest of you (and this includes all Delphi 6 and 7 users, as no such exe file exists for you), the following applies.

Installing the package
Packages for those that don't know, allow you to install many components all at once in one bundle (or package, you might say). The file you need to install DelphiX has a .dpk extension and can be found in the Source directory of DelphiX. It should be called DelphiX_forN.dpk where N is the version number of Delphi you're using. Opening this in Delphi brings up a dialog box showing a list of those files about to be compiled as a result of installing the package. Installation is now just a simple matter of clicking the Install button and waiting until the confirmation comes up with a list of components installed. You can now close the dialog boxes and select Close All from the File menu, clicking Yes to any prompts to save the package.

You now have access to the DelphiX components, but if you try and compile anything that uses them now, you'll find that an error is displayed telling you that a part of DelphiX couldn't be found (or words to that effect anyway). This is because Delphi can't find the actual source files for DelphiX and needs to be pointed in the right direction.

To sort this you need to pay a visit to the Environment Options dialog box, which you can access from the Tools menu. When the dialog box is displayed, select the Library tab. The part you're interested in is the Library Path. This is where you need to provide the directory where DelphiX's Source directory is. If you're using a recent version of Delphi this is particularly easy, as all you need to is click the three dotted button beside the entry, browse to the Units directory, click OK, and then click the Add button. If you're using something like Delphi 3 (and possibly 4 but I can't check), you don't have this feature. Instead you need to type in the full path to the Source directory, at the end of the line in the Edit box. First add a semi-colon ; to the end of the last entry on the line, and then type in the full path, something like E:\MY COMPONENTS\DELPHI X\Source

You can now just click OK. If you're at all confused about doing this, look at the previous entries added by Delphi to see the way in which they've been added. Be careful by the way, not to delete any of these existing entries or you could cause yourself a few problems!

Okay, so you can now use DelphiX. Congratulations, and enjoy! If you've any questions or you notice a mistake here, please do e-mail me or add a message on the board.

Subscribe to the feed delphigamedev.com NEWS Feed
archived news | mailing list

[ all tutorials found at delphigamedev.com are Copyright © 2008 Ben Watt ]