[Lazarus] Delphi-Lazarus compatible code including serial port?

Michael Schnell mschnell at lumino.de
Mon Oct 11 11:25:45 CEST 2010


> 1) Sprinkle the code with conditionams for Delphi/Lazarus and use the
> 5dpo component and its specific calls for Lazarus and the existing
> code for Delphi. This will be rather ugly since the comm object FComm
> is used in many places in the code.
>
You can easily instantiate AsyncPro in user code in Delphi, too (I'm 
doing this all the time), so that I don't need to  "install" complex 
packages with Delphi).

You can do your own "Async" unit (maybe even with an interface very 
similar to AsyncPro, so that you don't need to do many changes in your 
existing code <other than manually instantiating the object). In this 
unit you can use ifdefs or do two versions of same.  (please do provide 
this unit as open source :) )

-Michael






More information about the Lazarus mailing list