Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-06

Vortex unit for Turbo Pascal -- looking for volunteers to convert this excellent unit and others to Free Pascal and Lazarus.

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter E Williams

Hi,

Michael John Phillips is a friend of mine for over 3 decades and he is an unemployed Delphi communications programmer living in Canberra, Australia. He writes excellent and well documented code and below is a link to his Vortex unit. It is a mix of pascal and assembler for Windowszzzz.

I am keen to use as much of it as practical for Lazarus cross platform work. The reason why I don't want to port it myself is cos my assembler knowledge is terrible and I don't want to cock-up Michael's excellent work.

The vortex unit and other Delphi and pascal units found on the link at the bottom of this email are truly worthy of conversion... with one caveat -- we need to use compiler switches to exclude functions & procedures with assembler code from non-Windows systems.

------------------------
Vortex

This unit contains various routines that I use regularly in the software I write.

This includes routines to UpperCase, LowerCase, and Capitalise strings;
reading / writing disk sectors; searching a drive for a particular file;
copying a file; to name a few.

________________________________________________________________________ Unit Vortex;
{---------------------------------------------------------------------------} { Author : Michael John Phillips } { Address : Unit 53 / 3 Waddell Place } { Curtin ACT 2605 } { Tel : +61 (2) 6281-1980 } { Fax : +61 (2) 6281-1980 } { Mob : 0417 264319 } { Email : } {---------------------------------------------------------------------------} { 17 Mar 2002 MJP Added TV_StopWatch routine. } { 13 Apr 2002 MJP Added StringReplace routine. } { 04 May 2002 MJP Added IncludeTrailingBackslash, } { ExcludeTrailingBackslash and GetTempFileName } { routines. } { 28 May 2002 MJP Added V_GetComputerName routine. } { 11 Jun 2002 MJP Renamed GetTempFileName to V_GetTempFileName to match } { the equivalent routine I have in my Delphi version of } { the Vortex routines. } {---------------------------------------------------------------------------}

http://members.pcug.org.au/~mphillip/T_INDEX.HTM

Peter

Love and Friendship, Peter Eric Williams +61 3 6236-9675 (home or leave a message) Mobile 044-99-256-50 Proudly created in Australia. Quality Cross-Platform Games since 1970 with a Commodore PET 4016 with 16 Kilobytes of RAM (not Megabytes).

Reply by email

Marco van de Voort
to Peter E Williams
Peter E Williams wrote 7 lines
This unit contains various routines that I use regularly in the software I write. This includes routines to UpperCase, LowerCase, and Capitalise strings; reading / writing disk sectors; searching a drive for a particular file; copying a file; to name a few.

90% of this unit seems to be in the FPC rtl as portable FPC routines already or has equivalents.

A lot of the rest is very dos platform specific. (mostly the disk-reading)

16-bit assembler nearly always has to be rewritten from scratch. (since even if you could convert it to 32-bit, the optimum case is usually gone)

Reply by email