[lazarus] Need opinion
Michael Van Canneyt
michael.vancanneyt at wisa.be
Tue Oct 26 09:41:54 EDT 1999
On Tue, 26 Oct 1999, Shane Miller wrote:
> The Windows.pp file should be used in both Linux and Windows. If not, then
>
> 1) I need to put a {$IFDEF} in before the uses clause to remove the windows unit
> 2) How are yuou going to call some of these procedures when you are using windows? Remember, you DON'T have the delphi windows.pas file UNLESS you are writing your Apps under Delphi!
>
> The Windows.pp file has to be made for both environmewnts and has tro contain a {$IFDEF LINUX} or {$IFDEF WIN32} or something to that effect.
But windows.pp already exists for Windows. Thus you must make a replacement file for linux only,
and it should be compatible with the existing win32 windows.pp
So any lazarus app compiles both on windows and linux, with a minimal overhead...
Although I think that on the level of lazarus (LCL) there should NEVER be a
dependence on Windows or Linux. Just GTK/Qt/win32 for the low-level gui calls
and sysutils or low-level classes for all other stuff.
Michael.
More information about the Lazarus
mailing list