On 2007-08-22, Jim Leonard <MobyGamer@[EMAIL PROTECTED]
> wrote:
>> No with Borland Pascal (with BP, there are LFN units but these only
work
>> under Windows 9x).
>
> Crap. Isn't there some interrupt I can call, some memory structure I
> can inspect, etc.?
>
> If not, I would want to write the utility for regular DOS for
> prototyping and testing, then add conditional compile defines for a
> windows compiler. Would FreePascal be the "closest" to Borland, or
> should I try some other compiler? It's a recursive file copying
> utility that I plan to write, so ideally I'd need sup****t for
> "findfirst", "findnext", etc.
Free Pascal is slightly more compatible to Borland Pascal than Delphi
(e.g.
has a sup****ted units DOS and CRT, as well as a TV substitute).
BUTt unless you really need that compability because the source is very
large, I'd modernize it straight to the Delphi dialect, using sysutils. Be
it with FPC or Delphi. Note that with FPC such a transition is gradual, TP
dialect and Delphi-dialect code can coexist in one binary.
(e.g. 16-bits integers in the TP code, and 32-bit in the Delphi code)


|