[Lazarus] INVALID_* consts

Juha Manninen juha.manninen62 at gmail.com
Thu Jun 27 10:59:30 CEST 2013


On Thu, Jun 27, 2013 at 3:15 AM, waldo kitty <wkitty42 at windstream.net> wrote:
> converted from delphi to lazarus... as such, things like
>   uses windows;
> are replaced with
>   uses LCLIntf, LCLType, LMessages;

It is only replaced when "Cross-platform" is checked, although I
believe the right way is to keep it checked also in your case.


> i think i understand that... the problem is the conversion of DPR to LPR and
> what needs to be done after that to compile the project to even start any
> testing... perhaps this is due to not checking "support delphi"?? i dunno :(

You need to check "Support Delphi" only if you want to support Delphi
with the same code.
Did you not test what the different options do?

You still study the Windows constants. Why? You should forget them and
use the nice cross-platform functions instead. Mattias even gave you a
correct answer for file sizes:
  You can use "FileSizeUTF8" of unit LazFileUtils.

The converter already replaces many functions with their LCL
counterpart. See "Function Replacements" in converter settings.
If you find more functions to replace, please tell me.

Juha




More information about the Lazarus mailing list