Hi!
I have a CLI/GUI application, originally written in Delphi 5. I wanted to modify it for FreePascal/Lazarus compatibility, and succeeded, after a fashion: the application compiles without errors or warnings, and the CLI version runs fine (even in situations where I didn't expect it). But I can't get the GUI version to work - when I try to create my first form, the application crashes. An open console window reveals that the problem lies in "unknown properties" of my form - e.g., Delphi 5 has "TForm.TextHeight", which is unknown to Lazarus, and as soon as the DFM-reader encounters it, it throws an exception. Apparently, there are many other properties which work in Delphi but don't in Lazarus. Is there an easy way, via a switch while compiling or something, to keep the same .DFM file for both Delphi and Lazarus? (If it matters, I do my compile from command-line with the command:
fpc -B -Mdelphi source.dpr
Thanks, Pepak