# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # PasW32 2.0 "The Borland Pascal compatible RTL for Delphi" Copyright (C) 1998, Pasquale Morvillo All rights reserved E-mail: pamorv@freenet.hut.fi http://www.geocities.com/SiliconValley/Grid/8060/ ***************************************************************************** INTRODUCTION ***************************************************************************** PasW32 is a Borland Pascal compatible RTL for Delphi 2/3/4. So you can compile under Delphi applications written with Borland Pascal. In addition, you have all the advantages and speed of 32-bit programming under WIN32 operating system, access to all the memory available in your system, no 64Kb limit and full access to WIN32 API. The current version of PASW32 provide a replacement for the units SYSTEM, CRT, DOS, PRINTER, WINCRT and WINDOS; the STRINGS unit is included into the SYSUTILS Delphi unit; WINPROCS and WINTYPES unit are included into the WINDOWS and MESSAGES Delphi units). Of course, to compile your Borland Pascal programs with the PASW32 library, you need also a 32-bit Delphi compiler (ver. 2, 3 or 4). ***************************************************************************** GETTING STARTED ***************************************************************************** 1. You must put the file PASW32.DLL into a directory included in your path (per example, under WIN95 into C:\WINDOWS\SYSTEM; under WINNT into C:\WINNT\SYSTEM32). 2. The main file of your program (the pascal PROGRAM file) must have the extension .DPR (and not .PAS). 3. You have to put the clause {$APPTYPE CONSOLE} into your DPR file (if you want to create WINCRT based application, you need to add the clause {$APPTYPE GUI} to your program). 4. You must use the SYSTEM32 unit in each module you want to compile (put it as first unit into the uses clause). 5. Good luck and contact the autor for suggestions and problems. Example for console and CRT based programs: Program DemoConsole; {$APPTYPE CONSOLE} uses System32, Crt; begin writeln(memavail); readln; end. Example for WINCRT based programs: Program DemoWin; {$APPTYPE GUI} uses System32, WinCrt; begin writeln(memavail); readln; end. ***************************************************************************** NOTES ***************************************************************************** SYSTEM32, CRT, DOS, WINCRT and WINDOS units contain an interface to PASW32.DLL ; the sourcecode for all the procedures/functions of PASW32.DLL (written with Delphi 3.0) is not included into the freeware version. The Delphi SYSTEM unit contains a lot of functions/procedures included into the BP SYSTEM unit, so SYSTEM32.PAS includes only what is missed. CRT, WINCRt and PRINTER unit are 100% compatible with the correspondent BP units. DOS and WINDOS units don't support the interrupt procedures (MSDOS, INTR, GETINTVEC, SETINTVEC). Althought you are writing console mode applications, you can use all the functions of the WIN32 API (you need to use the Delphi WINDOWS unit). ***************************************************************************** CONTENTS OF W32PAS20.ZIP ***************************************************************************** README.TXT - this file SYSTEM32.PAS - system unit integration for Delphi DOS.PAS - dos unit for Delphi CRT.PAS - crt unit for Delphi PRINTER.PAs - printer unit for Delphi WINCRT.PAS - wincrt unit for Delphi WINDOS.PAS - windos unit for Delphi PASW32.DLL - DLL for all the functions/procedures DEMOSYS.DPR | DEMOSYS.DOF | Demo program for system32 unit DEMOSYS.DSK | DEMOSYS.EXE | DEMODOS.DPR | DEMODOS.DOF | DEMODOS.DSK | Demo program for DOS unit DEMODOS.EXE | DEMOCRT.DPR | DEMOCRT.DOF | DEMOCRT.DSK | Demo program for CRT unit DEMOCRT.EXE | ***************************************************************************** LICENSE AGREEMENT ***************************************************************************** This agreement explains when and how you may use the freeware version of this software product. In this agreement "PASW32" means all files from W32PAS20.ZIP PASW32 may be freely distributed, provided the distribution package is not modified. No person or company may charge a fee for the distribution of PASW32 without written permission from the copyright holder. This program is distributed WITHOUT ANY WARRANTY. Furthermore the autor is in no way responsible for any damage to computer software and/or hardware which may result from your use or misuse of PASW32. Installing and using PASW32 signifies acceptance of the terms and conditions of this license. If you don't agree with this terms or if your juristdiction does not allow the exclusion of warranty and liability as stated above you shall not use this software! If you are not agree with terms and conditions of the license you must remove all the files of the PASW32 package from your storage devices and cease to use this product. ***************************************************************************** IMPORTANT NOTICE ***************************************************************************** "PasW32" is copyrighted by Pasquale Morvillo. DOS, Windows, Delphi, Borland and Turbo Pascal are trademarks or registered trademarks of their respective holders.