Salut Bryan Smith !
Dans un message de Bryan Smith dat‚ du 25 Mar 97 16:17:29 il ‚tait dit:
BS> "algorithmic" part has a few bits such as
BS> {$IFDEF DELPHI}
BS> s:= FileSearch('A.A','') ;
BS> {$ELSE}
BS> s := FSearch('A.A','');
BS> {$ENDIF}
BS> scattered in the few places where codes changes are needed.
BS> By addingor removing a {$DEFINE DELPHI} line, it can be combined with
BS> either the DOS or the Delphi user interface to generate DOS or Delphi
BS> executables. Thatway, I don't have to worry about the two programs
BS> algorithms getting "out ofsynch."
I personnaly do thing in another way: I create a unit with all the old
functions rewriten as Delphi one. And conditionally include the unit
if the program is compiled with Delphi. Doing so need NO modification
to source code and easy maintenance. Just have to rewrite old function
with new syntax. For example many "screen handling" function can
easily be rewriten using Delphi 2, Win 32 console API functions.
Amiti‚s,
{-Francois Piette-}
francois.piette@ping.be
http://www.rtfm.be/fpiette
--- SvFido 1.32
---------------
* Origin: OverByte BBS (Embourg-Belgium) 32-4-3651395 VFC/V34+ (2:293/2202)
|