Porting Issues

CLX does indeed share many similarities with the VCL. However, many platform differences must be addressed, especially for component writers. You must address Win32 dependencies in your code. For example, any calls to the Win32 API (in Windows.pas) will need to be changed if the component is to operate in Kylix.

Note

Building a CLX component implies that you want to use the component in Kylix under Linux and possibly in Delphi 6 under Windows. If you only need to support Windows, create a VCL component and not a CLX component.

In addition, several runtime library (RTL) issues must be handled differently on Linux versus Windows such as case sensitivity for filenames and path delimiters under Linux. For some VCL components, it will ...

Get Borland® Delphi™ 6 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.