Информационный сервер для программистов: Исходники со всего света. Паскальные исходники со всего света
  Powered by Поисковый сервер Яndex: Найдется ВСЁ!
На Главную Исходники Форум Информер Страны мира
   Окружение OS    >>    dos70p20
   
 
 DOS70 v2.0 - MS-DOS 7.x Extension Routines   Cristi Streng 11.02.1998

Модуль DOS70 расширяет стандартные средства Borland Pascal 7.0 за счет поддержки новых возможностей MS-DOS 7.0, входящей в состав Windows 95. Включает в себя поддержку длинных имен файлов, сервис виртуальной машины, новые функции MS-DOS. Приведено подробное руководство по использованию и несколько примеров.
DOS70 is a powerful, easy-to-use Turbo Pascal unit, implementing MS-DOS 7.x extensions and file handling routines.
Features:
- over 40 long filenames functions and procedures
- over 10 functions and procedures implementing virtual machine services
- over 20 general MS-DOS functions and procedures
- text file interface
- complete, comprehensive manual
- DOS 7.1 specific functions.
- full source & examples included.
- a new unit using PChar strings is present in this package.
- compiles with Turbo/Borland Pascal 5.5/6/7.0 for Dos/Windows.



192k 
 

+---------------------+ | DOS70 Version 2.0 | +---------------------+ A powerful, very easy-to-use Borland/Turbo Pascal unit, implementing DOS 7.x extensions and specific file routines. Copyright (C) by Cristi Streng February 11th, 1998 -------------------------------------------------------------- WHY DOS70 ? ----------- MS-DOS 7.0 (included in Windows 95) was the first version of DOS that was capable of creating and using files with long names. Long names are names for files or directories that exceed the standard 8.3 format. I wrote this unit because I wanted to use Long Filenames (LFNs) in a Turbo Pascal 7 program (I am usually running Borland Pascal 7.0 in a Windows 95 window). I have included over 40 functions and procedures for LFNs, over 10 Virtual Machine functions and procedures and also over 20 general MS-DOS 7.x functions. DOS70 now compiles with Borland Pascal 7.0 for Windows. This package contains: - The DOS70 unit, including: - Retrieve Windows (and DOS) version. - Long File Name (LFN) functions for opening, reading, writing, searching files with long names. - LFN functions for file date, size and attributes. - LFN functions for working with directories (folders) and paths. - New MS-DOS functions that appeared in version 7.0 (Windows 95). - New MS-DOS functions in version 7.1 (Windows 95 OSR2 = Win96). - Virtual Machine services: Change window titles, Close-Aware applications. - Text file interface. - The DOS70 unit with PChar strings instead of standard Pascal strings. - A complete manual describing the whole unit. Please read MANUAL.TXT or MANUALP.TXT before using the unit. - Full source of the units (with standard and PChar strings) - Ten example files (five with PChar strings, five with Pascal strings). - This file (README.TXT). ------------------------------------------------------------------------ ABOUT THE AUTHOR ---------------- I am a Computer Science student at "Emanuil Gojdu" High School, Oradea, Romania (I'm in the last grade of secondary school). I am fond of UNIX, Windows 95, and DOS programming in C++ and Pascal. If you have anything to do with programming (and you have some spare time), feel free to contact me. Send me an e-mail, or a postcard. If you enjoy using this unit, please let me know. I would appreciate if you send me a copy of your program that uses this unit. ----------------------------------------------------------------------- EXAMPLES -------- The original text was: > In this package you will find three examples. I haven't > included more examples because I think the documentation > is very comprehensive and it's very easy to figure out > how various functions work. Now there are ten examples, so I think the above text doesn't apply any more... If you have created an example program for DOS70, send it to me and I'll gladly put it on my homepage and into the package (or into a special package containing examples only, it depends on how many examples you send...). Example 1: demonstrates you how to use various functions included in the DOS70 unit. Example 2: searches for files matching the specified file mask in a directory and its subdirectories. (Try 'EXAMPLE2 C:\ *' :-) Example 3: demonstrates how to use virtual machine services. Example 4: demonstrates how to use the text file interface (opens a file, then writes to and reads from the file). Example 5: demonstrates the use of the ExtDiskFree/ExtDiskSize functions (works only with DOS 7.1 - Windows 95 OSR 2 aka Windows 96). ----------------------------------------------------------------------- THANKS TO --------- David Parsons <david.parsons@virgin.net> for creating the text file interface for DOS70 Arnoud Lambers <mta-mm@vip.cybercity.dk> for porting DOS70 to TP 5.5 Ming Au <s.m.au@twi.tudelft.nl> for showing me a few bugs (and for giving me a few patches) of previous versions of DOS70 (check out his homepage: http://www.twi.tudelft.nl/~tw021027/ ) ... and last but not the least thanks to Ralf Brown <ralf@pobox.com> - for creating the wonderful Interrupt List (ftp://ftp.simtel.net/pub/simtelnet/msdos/info/inter*.zip) -------------------------------------------------------------- MISC ---- System requirements: Windows 95, Borland/Turbo Pascal 5.5/6.0/7.0. Where to get new versions: ftp://ftp.simtel.net/pub/simtelnet/msdos/turbopas/dos70pxx.zip (Pascal) ftp://ftp.simtel.net/pub/simtelnet/msdos/turboc/dos70cxx.zip (C) http://www.geocities.com/SiliconValley/Horizon/6444/dos70pxx.zip http://www.geocities.com/SiliconValley/Horizon/6444/dos70cxx.zip ftp://garbo.uwasa.fi/pc/turbspec/dos70pxx.zip ftp://garbo.uwasa.fi/pc/turboc/dos70cxx.zip ftp://lego.soroscj.ro/pub/users/cristis/soft/dos70pxx.zip ftp://lego.soroscj.ro/pub/users/cristis/soft/dos70cxx.zip Installation: Just unzip the files in this package into any directory, then copy the file named 'DOS70.PAS' into your program directory. ----------------------------------------------------------------- WHAT'S NEW --------- Version 2.0 (February 1998): ----------- - a new unit using PChar strings is included. - a text file interface is now available, thanks to David Parsons <david.parsons@virgin.net> - new DOS 7.0 functions included. - supports new functions existent only in DOS 7.1 (Win95 OSR2, or Win96) - these functions do not work in DOS 7.0. - example 3 has been rewritten. - example 1 has been changed. - 2 examples have been added. - the 5 examples use Pascal strings, there are 5 more examples with PChar strings, giving a total of 10 examples in this package. - now compiles with TP5.5, TP6.0, TP7.0 for DOS & Windows. - many minor (and not so minor) bugs were fixed. - the manual has been reviewed. - starting with March 1998, you can get DOS70 v1.0 for (Borland) C from the sites listed above. Version 1.3 (January 1998): ----------- - version 1.3 corrects some minor bugs. - the manual has been reviewed. - a minor bug in TFindData.Attrs was fixed. - a minor bug in TFindData.FileSize was fixed. Version 1.2 (September 1997): ----------- - DOS70 now works with Borland Pascal 7.0 for Windows (you can create 16-bit Windows programs that work with long filenames under Windows 95). - a bug in DOSTimeToFileTime was fixed. - a bug in GetDriveMapInfo was fixed. - 3 new procedures were added. - one example file was added. Version 1.1 (July 1997): ----------- - a bug in IsDOS70 was fixed. - virtual machine functions and procedures were added. - the GetVer and GetWinVer functions were added. Version 1.0 (June 1997): ----------- - first version of DOS70 was released. - two example files. ----------------------------------------------------------------------- LICENSE ------- All software and documentation included in this package is provided "as is", with NO WARRANTY of any kind. I assume NO RESPONSIBILITY for any damage this unit may cause. You are allowed to freely use, copy and distribute this package if no fee is charged, and only if it is distributed in its ORIGINAL, UNMODIFIED state. You are allowed to use this unit in either commercial or non-commercial products with the condition that no extra fee is charged and that you give credits to the author. If you find this unit useful in your work, a money contribution would be appreciated. Your contribution helps me continue my work, the development of freeware and shareware products. Let me know if you want to receive e-mail messages when new versions are released. If you find any bugs, if you have any suggestions or questions, please contact me at: Internet: http://www.lego.soroscj.ro/~cristis (I'm working on it... I'm also creating my school's homepage - try http://www.lego.soroscj.ro/ ) http://www.geocities.com/SiliconValley/Horizon/6444/ (mirror) E-Mail: cristis@lego.soroscj.ro (or root@lego.soroscj.ro) cristis@usa.net cstreng@hotmail.com Address: Cristi Streng str. Gen. Magheru nr. 11A ap.5 3700 Oradea Romania Phone: +40-59-417477