archive-com.com » COM » E » EFG2.COM

Total: 878

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".

  • TeamB Mime Version 1 0 Reply To pandeng telepath com Newsgroups borland public delphi objectpascal borland public delphi vcl components using On Wed 3 May 2000 18 01 40 0200 Wouter Top wrote Does anyone know how to display Unicode or a widestring in a form Use the TextOutW API function It is identical to TextOut except that it accepts a PWideChar string rather than a PChar string Pass TForm

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2000/0503.txt (2016-02-14)
    Open archived version from archive



  • can tell me how to use it to read a string from a text file and convert it to unicode A typical implementation is shown below function StringToWideStringEx const S String CodePage Word WideString var L Integer begin L MultiByteToWideChar CodePage 0 PChar S 1 nil 0 SetLength Result L 1 MultiByteToWideChar CodePage 0 PChar S 1 PWideChar Result L 1 end file function WideStringToStringEx const WS WideString CodePage Word

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2000/0512.txt (2016-02-14)
    Open archived version from archive

  • efg's Delphi Files
    the age of the file or 1 if the file does not exist Use FileDateToDateTime to convert to a TDateTime value Look for example on efg s Dates and Times page SysUtils FileDateToDateTime s FormatDateTime mm dd yyy hh nn ss see TSearchRec below FileDateToDateTime SearchRec Time See EXE Date example above Borland TI 541D Look for example on efg s Dates and Times page SysUtils FileExists function FileExits const Filename string Boolean Returns TRUE if specified file exists FileExists Using IOResult UseNet Post by Sean Kendrick See example under Append in File I O SysUtils FileGetAttr function FileGetAttr const FileName string Integer FileGetAttr returns the attributes of the file as a string of bits This value is the same as the Attr field of a TSearchRec record Check for individual attributes with code such as the following Attrs FileGetAttr MyFile sys if Attrs and faHidden 0 then FileSetAttr MyFile sys Attrs faHidden A return value of 1 indicates that an error occurred Garth S Wilcox s UseNet Post with example of removing read only attribute SysUtils FileGetDate function FileGetDate Handle Integer Integer Use FileGetDate to determine the timestamp of a file given its handle The return value is 1 if the handle is invalid The FileDateToDateTime function can be used to convert the returned value to a TDateTime value Borland TI 541D Look for example on efg s Dates and Times page FileMapping See examples of OpenFileMapping CreateFileMapping and UnMapViewOfFile in RegDet DPR file in Neil Rubenking s Registry Detective utility from PC Magazine FileMode variable var FileMode Byte The FileMode variable determines the access mode to use when typed and untyped files not text files are opened using the Reset procedure The default FileMode is 2 Read Write access Assigning another value to FileMode causes all subsequent Resets to use that mode The sysutils unit declares a number of file open mode constants that can be assigned to the FileMode variable System FileSearch function FileSearch const Name DirList string string FileSearch searches through the directories passed in DirList for a file named Name DirList is a semicolon delimited set of DOS path names If FileSearch locates a file matching Name it returns a string specifying a fully qualified path name for that file If no matching file exists FileSearch returns an empty string see also FindFirst FindNext FindClose in Directories SysUtils FileSetAttr function FileSetAttr const FileName string Attr Integer Integer FileSetAttr sets the file attributes of the file given by FileName to the value given by Attr The value of Attr is formed by combining the appropriate file attribute constants as in the following FileSetAttr MyFile sys faReadOnly or faSysFile FileSetAttr returns zero if the function was successful Otherwise the return value is a Windows error code Garth S Wilcox s UseNet Post with example of removing read only attribute Recursive delete a group of files and subdirectories www preview org q q1016 shtml SysUtils FileSetDate function FileSetDate Handle Integer Age Integer Integer FileSetDate sets the DOS date time stamp of the file given by Handle to the value given by Age The DateTimeToFileDate function can be used to convert a TDateTime value to a DOS date time stamp The return value is zero if the function was successful Otherwise the return value is a Windows error code How to Match File Date Time Borland TI 719D Look for example on efg s Dates and Times page SysUtils FileSize Neil Rubenking s FileSizeFromName in the AllFuncs pas unit of his ColorClue utility Open in Binary mode to use FileSize function FUNCTION GetFileSize CONST FileName STRING LongInt VAR FileModeSave BYTE RawFile FILE OF Byte BEGIN RESULT 0 avoid compiler warning TRY FileModeSave System FileMode System FileMode fmOpenRead fmShareDenyNone AssignFile RawFile FileName Reset RawFile RESULT FileSize RawFile CloseFile RawFile System FileMode FileModeSave EXCEPT ShowMessage Fatal Error Cannot open FileName binary RAISE END END GetFileSize System Find Files Opening the Find Files Dialog Using Delphi by Eddie Shipman www undu com Articles 980226a htm Eddie Shipman s UseNet Post to use Find Files or Folders Dialog From the Shell Dialog Boxes You ve Always Needed Delphi Informant May 1999 Examples Finding Files Browsing for Files Vol 5 No 5 pp 28 36 GetFileDate function FileGetDate Handle Integer Integer Use FileGetDate to determine the timestamp of a file given its handle The return value is 1 if the handle is invalid The FileDateToDateTime function can be used to convert the returned value to a TDateTime value Borland TI 541D GetFileLastAccessTime When was that file last accessed www chami com tips delphi 012797D html GetFileSize GetFileSize using FindFirst in UseNet Post by Freter GetFileVersionInfo Steve Shafer s GetBuildInfo procedure in UseNet Post by Peter Below works in D4 or D5 but gives access violation in D3 GetTempFilename When was that file last accessed www chami com tips delphi 012797D html GpHugeFile Encapsulation of Windows file handling routines that allows work with 2GB files www eccentrica org gabr gp index htm THugeFile Handle Getting a handle on your files FAQ 534D IncludeTrailingBackSlash D5 SysUtils INI Files INI files appear to have a 64 KB limit removed when using TMemIniFile instead of TIniFile and 1023 bytes per character string EraseSection erase an entire section of INI file ReadBool ReadInteger ReadSection ReadString WriteBool WriteInteger WriteString TIniFile in IniFiles Example USES IniFiles TIniFile VAR Filename STRING IniFile TIniFile NewPath STRING BEGIN Update INI file for next time Filename ChangeFileExt ParamStr 0 INI NewPath ExtractFilePath OpenPictureDialog Filename OpenPictureDialog InitialDir NewPath IniFile TIniFile Create Filename TRY Inifile WriteString KeywordSetup KeywordDirectory NewPath FINALLY IniFile Free END Flush INI cache WritePrivateProfileString NIL NIL NIL pChar Filename Peter Below s comments about TMemIniFile in UseNet Post Internally TMemInifile is just a TStringlist Each access to a section or item involves linear searches through the stringlist lines so it tends to get slow if you have thousands of lines For very large inifiles a better in memory representation would be a TList of TStringlists one for each section Peter Below s UseNet Post

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/IO/Files.htm (2016-02-14)
    Open archived version from archive

  • efg's Directories
    Deleting a directory and all the directory files Borland FAQ 777D CountFiles CountFolders DeleteFolder GetFolderSize below See also Recursive Directory Search Dr John Stockton s solution http www merlyn demon co uk programs dirslist pas The FileListLibrary PAS unit provides a ScanDirectory procedure for a generic way to process a hierarchy of directories and files Two callback routines are parameters to ScanDirectory to process each file and to process the beginning and end of a directory The routines ProcessDirectory and ProcessFile in ScreenFileCheck PAS are the routines used as parameters to ScanDirectory See the FileCheck Lab Report for the source code Normally FileSpec is FUNCTION CountFiles CONST Path STRING CONST FileSpec STRING INTEGER VAR ReturnCode INTEGER SearchRec TSearchRec BEGIN RESULT 0 ReturnCode SysUtils FindFirst Path Filespec faAnyFile SearchRec TRY WHILE ReturnCode 0 DO BEGIN IF SearchRec Attr AND faDirectory faDirectory AND SearchRec Name AND SearchRec Name THEN INC RESULT ReturnCode SysUtils FindNext SearchRec END FINALLY SysUtils FindClose SearchRec END END CountFiles Count subfolders subdirectories in given directory FUNCTION CountFolders CONST Path STRING INTEGER VAR ReturnCode INTEGER SearchRec TSearchRec BEGIN RESULT 0 ReturnCode SysUtils FindFirst Path faDirectory SearchRec TRY WHILE ReturnCode 0 DO BEGIN IF SearchRec Attr AND faDirectory 0 AND SearchRec Name AND SearchRec Name THEN INC RESULT ReturnCode SysUtils FindNext SearchRec END FINALLY SysUtils FindClose SearchRec END END CountFolders Also see Borland FAQ 777D FUNCTION DeleteFolder CONST Folder TFileName BOOLEAN VAR OK BOOLEAN ReturnCode INTEGER SearchRec TSearchRec BEGIN RESULT TRUE ReturnCode SysUtils FindFirst Folder faAnyFile SearchRec TRY WHILE ReturnCode 0 DO BEGIN IF SearchRec Name AND SearchRec Name AND SearchRec Attr faDirectory THEN BEGIN OK SysUtils DeleteFile Folder SearchRec Name IF NOT OK THEN RESULT FALSE END ReturnCode SysUtils FindNext SearchRec END FINALLY SysUtils FindClose SearchRec END RESULT RemoveDir Folder AND RESULT END DeleteFolder PROCEDURE GetFolderSize CONST Path STRING VAR TotalBytes Integer VAR TotalFiles INTEGER VAR SearchRec TSearchRec ReturnCode INTEGER BEGIN TotalBytes 0 TotalFiles 0 ReturnCode SysUtils FindFirst Path faAnyFile SearchRec WHILE ReturnCode 0 DO BEGIN IF SearchRec Name AND SearchRec Name AND SearchRec Attr faDirectory THEN BEGIN TotalBytes TotalBytes SearchRec Size TotalFiles TotalFiles 1 END ReturnCode SysUtils FindNext SearchRec END SysUtils FindClose SearchRec END GetFolderSize SysUtils ForceDirectories see example under Append in File I O section FileCtrl GetCurrentDir function GetCurrentDir string SysUtils GetDir System GetFolderSize see example above in FindFirst FindNext GetSpecialPath See Neil Rubenking s AllFuncs pas unit in his ColorClue PC Magazine utility GetSystemDirectory Rudy Velthuis Team B UseNet Post with example Bill Todd s UseNet Post GetTempFileName Can be used for temporary directory name GetTempPath Serghiy Perevoznyk s UseNet Post GetWindowsDirectory Rudy Velthuis Team B UseNet Post with example A tricky way to use SetLength www preview org q q1022 shtml IncludeTrailingBackSlash function IncludeTrailingBackSlash const s string string SysUtils D5 JEDI Delphi Jedi Code Library JclFileUtils PAS unit Managing Directories Delphi in a Nutshell p 500 MkDir System Path to DOS Path Mayakron s UseNet Post with PathToDOSPath function PIDLs Delphi Informant s The Secret World of PIDLs Working with Windows Shell Item Identifiers Recursive

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/IO/Directories.htm (2016-02-14)
    Open archived version from archive

  • efg's Delphi Disks/Drives
    FAT File allocation table See Floppy PAS unit in Alpha32 ZIP donated by Dejan Maksimovic Function CreateFloppyFATs FAT32 see Cluster Size FAT32 unit including functions GetFat32FreeSpace IsFat32Available FreeSpaceOnDrive TotalSpaceOnDrive Dr Abimbola A Olowofoyeku s The African Chief UseNet Post Angus Johnson s UseNet Post about FAT and cluster size and D1 GetClusterSizeFAT32 function the GetDiskFreeSpace function is reliable in deriving cluster size if it is a FAT16 drive If it is a FAT32 drive i e Win95b and Win98 then GetDiskFreeSpace is not reliable Most FAT32 drives will be formatted to a 4k cluster size but not all DeviceIOControl can be used to derive the cluster size there are a couple of function codes which can be used Get ExtDPB and Get ExtFreeSpace Non Delphi FAT32 File System www maverick os dk FileSystemFormats FAT32 FileSystem html FAT 32 API http msdn microsoft com library psdk winbase fat32 12nk htm FDISK Non Delphi How to Use Fdisk and Format to Partition or Repartition a Hard Disk http support microsoft com support kb articles q255 8 67 asp Files To get a list or process all files on a drive see the recursive solutions under FindFirst FindNext FindClose on Directories page The FileListLibrary PAS unit provides a ScanDirectory procedure for a generic way to process a hierarchy of directories and files Two callback routines are parameters to ScanDirectory to process each file and to process the beginning and end of a directory The routines ProcessDirectory and ProcessFile in ScreenFileCheck PAS are the routines used as parameters to ScanDirectory See the FileCheck Lab Report for the source code Floppy See Floppy PAS unit in Alpha32 ZIP donated by Dejan Maksimovic Functions AllocFloppyFSBR ReadFloppyFSBR FreeFloppyFSBR CreateFloppyBootRecord CreateFloppyFATs CreateFloppyRootDir FormatFloppyDisk UseNet Post by Paul Jackson with FloppyDriveHasDisk example Format Disk Formatting Disks in From the Shell Part I Dialog Boxes You ve Always Needed Delphi Informant April 1999 Peter Below s UseNet Post about using Quick Format Krasimir Krastev s UseNet Post Steve Schafer s UseNet Post DeviceIOControl example Jong Taek Ryu s UseNet Post with SHFormatDrive example Xavier Pacheco s TeamB UseNet Post with caution and method using WinExec Comment FORMATER UNE DISQUETTE en utilisant l API SHFormatDrive http perso wanadoo fr bardou michel zip formatdrive zip Formatting a drive under Win32 Borland FAQ 1307D Jon Scott s Format Floppy example http members xoom com XOOM jescott DelphiCodeTips1 html FormatFloppy See Floppy PAS unit in Alpha32 ZIP donated by Dejan Maksimovic ANTS TFloppyFormat component allows the floppy disks formatting and or verification disk checking bootable disks making single tracks formatting reading writing the floppy disk sectors in Windows 95 98 and NT Extensive help file and demonstration program are included http delphi icm edu pl ftp d20share fformdem zip GetDiskFreeSpace FreeClusters and TotalClusters returned by GetDiskFreeSpace will be at most 65526 and the free space can never exceed 2 147 155 968 bytes This is a limitation of the Win32 API See GetDiskFreeSpaceEx See D3 Disk Space Kludge FUNCTION FreeSpace Drive BYTE Integer VAR

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/IO/DisksDrives.htm (2016-02-14)
    Open archived version from archive

  • efg's Delphi File I/O
    in Delphi Borland s TI 910D System Close Use CloseFile below Exists only for backward compatibility System Close a File How do I close a file that was opened in a DLL Delphi made and called from VB Borland s TI 561D CloseFile procedure CloseFile var F Associates the name of an external file with a file variable Can be abbreviated as Close for backward compatibility See ExclusiveIO Example College Student Guide to Reading and Writing Files Borland s TI 641D System DeleteFile function DeleteFile const FileName string Boolean Erase the specified file SysUtils EOF function Eof var F Boolean Text files function Eof Var F Text Boolean Tests whether the current file position is the end of file System EOLN function Eoln Var F Text Boolean Tests whether the current file position is the end of line of a text file System Erase procedure Erase var F Deletes the external file associate with F System Exception Handling See IOResults and Critical Errors Page Exclusive I O Delphi only directly supports exclusive reads from typed or untyped files This UNIT provides a TExclusiveIO class to read a TextFile in an exclusive mode Use in a network when files are shared Also handles either DOS or UNIX format of ASCII files ExclusiveIO File I O Dealing with File I O Delphi 5 Developer s Guide pp 338 360 by Teixeria and Pacheco File Input and Output Delphi in a Nutshell pp 494 497 File mode constants Use the file mode constants when opening and closing disk files The Mode field of TFileRec and TTextRec will contain one of these values fmClosed D7B0 fmInput D7B1 fmOutput D7B2 fmInOut D7B3 SysUtils File Open Mode constants Use the file open mode constants to control the shareability of a file or stream when it s opened fmOpenRead 0000 Open for read access only fmOpenWrite 0001 Open for write access only fmOpenReadWrite 0002 Open for read and write access fmShareCompat 0000 Compatible with the way FCBs are opened fmShareExclusive 0010 Open the file disallowing other applications to open it for reading or writing fmShareDenyWrite 0020 Open the file disallowing other applications to open it for writing Philippe Ranger s UseNet Post with File Locking Example fmShareDenyRead 0030 Open the file disallowing other applications to open it for reading fmShareDenyNone 0040 Open the file disallowing other applications to open it for exclusive use SysUtils FileClose procedure FileClose Handle Integer Closes the specified file How to Match File Date Time Borland s TI 719D AlterFileTimeStamp TXT example SysUtils FileCreate function FileCreate const Filename string Integer Closes the specified file SysUtils FileMode The FileMode variable a byte determines the access mode to use when typed and untyped files not text files are opened using the Reset procedure The default FileMode is 2 Assigning another value to FileMode causes all subequent Resets to use that mode 0 Read Only 1 Write Only 2 Read Write See ExclusiveIO Example using fmShareExclusive fragment of Patching EXE System FileOpen How to Match File

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/IO/FileIO.htm (2016-02-14)
    Open archived version from archive

  • efg's Delphi IOResults And Critical Errors
    is the target of a previous substitute 150 ERROR SYSTEM TRACE System trace information was not specified in your CONFIG SYS file or tracing is disallowed 151 The number of specified semaphores events for DosMuxSemWait is not correct 152 DosMuxSemWait did not execute too many semaphores are already set 153 The DosMuxSemWait list is not correct 154 The volume label you entered exceeds the label character limit of the target file system 155 Cannot create another thread 156 The recipient process has refused the signal 157 The segment is already discarded and cannot be locked 158 The segment is already unlocked 159 The address for the thread ID is not correct 160 The argument string passed to DosExecPgm is not correct 161 ERROR BAD PATHNAME The specified path name is invalid 216 According to UseNet Post by Jeff Overcash TeamB A 216 error usually occurs in a finalization section in your program Finalizations happen outside the exception handling routines of the exe itself Look for things like double Frees if you are using global variables always set their value to nil after freeing them so double frees won t happen It can also be in a third party component s finalization section also You might want to just try Close in the MainForm s Exit routine and close the main form this will cause the application to terminate I doubt that is directly your problem but might help in this timing problem you seem to be having during shutdown According to Rick Rogers Team B in a UseNet Post It means an exception has occurred outside Delphi s normal exception handling process This in turn means your application is causing an exception in the initialization or finalization code from your description it sounds like initialization Use standard debugging techniques such as tracing or logging to find the source of the error According to UseNet Post by John I was getting a 216 error in one of my applications and I finally tracked it down to a procedure that was triggered by an onchanged event on a memofield was updated after the form it was on had closed I solved it by putting in an onclose event handler for the form that then disabled the onchanged event handler According to UseNet Post by David Most often I get this when I forget to make absolutely sure all resources I allocate in a custom dll are free before unloading it 217 Ray Lischner s UseNet Post exception was raised before SysUtils is initialized or after it is finalized Ignore the nonsense about Control C in the help files Pierre du Parte s UseNet Post We experienced this error when a third party component tried to write to a part of NT s registry where the user didn t have permission JB s UseNet Post Other scenarios I have gotten this error 1 BDE Net Dir mismatch 2 Trying to write to a file disk with no write privileges Bill Zissimopoulos UseNet Post One of your initialization sections is failing and throws an exception The run time is not ready to properly handle exceptions at this point and you get this error 255 Borland s Runtime Error 255 FAQ 1683D 162 A signal is already pending 164 No more threads can be created in the system 167 Unable to lock a region of a file 170 The requested resource is in use 173 A lock request was not outstanding for the supplied cancel region 174 The file system does not support atomic changes to the lock type 180 The system detected a segment number that was not correct 182 The operating system cannot run 1 183 Cannot create a file when that file already exists 186 The flag passed is not correct 187 The specified system semaphore name was not found 188 The operating system cannot run 1 189 The operating system cannot run 1 190 The operating system cannot run 1 191 Cannot run 1 in Win32 mode 192 The operating system cannot run 1 193 1 is not a valid Win32 application 194 The operating system cannot run 1 195 The operating system cannot run 1 196 The operating system cannot run this D A application program 197 The operating system is not presently D A configured to run this application 198 The operating system cannot run 1 199 The operating system cannot run this D A application program 200 The code segment cannot be greater than or equal to 64KB 201 The operating system cannot run 1 202 Stack Overflow Runtime error 202 FAQ 1373D Steve Schafer s UseNet Post Error 202 is a stack overflow It s pretty hard to get a genuine stack overflow in Win32 unless you have runaway recursion The other way to cause the error is to corrupt the stack by overwriting it usually by writing past the end of a local variable or something similar 202 The operating system cannot run 1 203 The system could not find the environment D A option that was entered 205 No process in the command subtree has a D A signal handler 206 The filename or extension is too long 207 The ring 2 stack is in use 208 The global filename characters or are entered D A incorrectly or too many global filename characters are specified 209 The signal being posted is not correct 210 The signal handler cannot be set 212 The segment is locked and cannot be reallocated 214 Too many dynamic link modules are attached to this D A program or dynamic link module 215 Can t nest calls to LoadModule 230 The pipe state is invalid 231 All pipe instances are busy 232 The pipe is being closed 233 No process is on the other end of the pipe 234 More data is available 240 The session was cancelled 254 The specified extended attribute name was invalid 255 The extended attributes are inconsistent 259 No more data is available 266 The Copy API cannot be used 267 The directory name is invalid 275 The extended attributes did not fit in the buffer 276 The extended attribute file on the mounted file system is corrupt 277 The extended attribute table file is full 278 The specified extended attribute handle is invalid 282 The mounted file system does not support extended attributes 288 Attempt to release mutex not owned by caller 298 Too many posts were made to a semaphore 299 Only part of a Read WriteProcessMemory request was completed 317 The system cannot find message for message number 0x 1 D A in message file for 2 487 Attempt to access invalid address 534 Arithmetic result exceeded 32 bits 535 There is a process on other end of the pipe 536 Waiting for a process to open the other end of the pipe 994 Access to the extended attribute was denied 995 The I O operation has been aborted because of either a thread exit D A or an application request 996 Overlapped I O event is not in a signalled state 997 Overlapped I O operation is in progress 998 Invalid access to memory location 999 Error performing inpage operation 1001 Recursion too deep stack overflowed 1002 The window cannot act on the sent message 1003 Cannot complete this function 1004 Invalid flags 1005 The volume does not contain a recognized file system D A Please make sure that all required file system drivers are loaded and that the D A volume is not corrupt 1006 The volume for a file has been externally altered such that the D A opened file is no longer valid 1007 The requested operation cannot be performed in full screen mode 1008 An attempt was made to reference a token that does not exist 1009 The configuration registry database is corrupt 1010 The configuration registry key is invalid 1011 The configuration registry key could not be opened 1012 The configuration registry key could not be read 1013 The configuration registry key could not be written 1014 One of the files in the Registry database had to be recovered D A by use of a log or alternate copy The recovery was successful 1015 The Registry is corrupt The structure of one of the files that contains D A Registry data is corrupt or the system s image of the file in memory D A is corrupt or the file could not be recovered because the alternate D A copy or log was absent or corrupt 1016 An I O operation initiated by the Registry failed unrecoverably D A The Registry could not read in or write out or flush one of the files D A that contain the system s image of the Registry 1017 The system has attempted to load or restore a file into the Registry but the D A specified file is not in a Registry file format 1018 Illegal operation attempted on a Registry key which has been marked for deletion 1019 System could not allocate the required space in a Registry log 1020 Cannot create a symbolic link in a Registry key that already D A has subkeys or values 1021 Cannot create a stable subkey under a volatile parent key 1022 A notify change request is being completed and the information D A is not being returned in the caller s buffer The caller now D A needs to enumerate the files to find the changes 1051 A stop control has been sent to a service which other running services D A are dependent on 1052 The requested control is not valid for this service 1053 The service did not respond to the start or control request in a timely D A fashion 1054 A thread could not be created for the service 1055 The service database is locked 1056 An instance of the service is already running 1057 The account name is invalid or does not exist 1058 The specified service is disabled and cannot be started 1059 Circular service dependency was specified 1060 The specified service does not exist as an installed service 1061 The service cannot accept control messages at this time 1062 The service has not been started 1063 The service process could not connect to the service controller 1064 An exception occurred in the service when handling the control request 1065 The database specified does not exist 1066 The service has returned a service specific error code 1067 The process terminated unexpectedly 1068 The dependency service or group failed to start 1069 The service did not start due to a logon failure 1070 After starting the service hung in a start pending state 1071 The specified service database lock is invalid 1072 The specified service has been marked for deletion 1073 The specified service already exists 1074 The system is currently running with the last known good configuration 1075 The dependency service does not exist or has been marked for D A deletion 1076 The current boot has already been accepted for use as the D A last known good control set 1077 No attempts to start the service have been made since the last boot 1078 The name is already in use as either a service name or a service display D A name 1100 The physical end of the tape has been reached 1101 A tape access reached a filemark 1102 Beginning of tape or partition was encountered 1103 A tape access reached the end of a set of files 1104 No more data is on the tape 1105 Tape could not be partitioned 1106 When accessing a new tape of a multivolume partition the current D A blocksize is incorrect 1107 Tape partition information could not be found when loading a tape 1108 Unable to lock the media eject mechanism 1109 Unable to unload the media 1110 Media in drive may have changed 1111 The I O bus was reset 1112 No media in drive 1113 No mapping for the Unicode character exists in the target multi byte code page 1114 A dynamic link library DLL initialization routine failed 1115 A system shutdown is in progress 1116 Unable to abort the system shutdown because no shutdown was in progress 1117 The request could not be performed because of an I O device error 1118 No serial device was successfully initialized The serial driver will unload 1119 Unable to open a device that was sharing an interrupt request IRQ D A with other devices At least one other device that uses that IRQ D A was already opened 1120 A serial I O operation was completed by another write to the serial port D A The IOCTL SERIAL XOFF COUNTER reached zero 1121 A serial I O operation completed because the time out period expired D A The IOCTL SERIAL XOFF COUNTER did not reach zero 1122 No ID address mark was found on the floppy disk 1123 Mismatch between the floppy disk sector ID field and the floppy disk D A controller track address 1124 The floppy disk controller reported an error that is not recognized D A by the floppy disk driver 1125 The floppy disk controller returned inconsistent results in its registers 1126 While accessing the hard disk a recalibrate operation failed even after retries 1127 While accessing the hard disk a disk operation failed even after retries 1128 While accessing the hard disk a disk controller reset was needed but D A even that failed 1129 Physical end of tape encountered 1130 Not enough server storage is available to process this command 1131 A potential deadlock condition has been detected 1132 The base address or the file offset specified does not have the proper D A alignment 1140 An attempt to change the system power state was vetoed by another D A application or driver 1141 The system BIOS failed an attempt to change the system power state 1150 The specified program requires a newer version of Windows 1151 The specified program is not a Windows or MS DOS program 1152 Cannot start more than one instance of the specified program 1153 The specified program was written for an older version of Windows 1154 One of the library files needed to run this application is damaged 1155 No application is associated with the specified file for this operation 1156 An error occurred in sending the command to the application 1157 One of the library files needed to run this application cannot be found 1200 The specified device name is invalid 1201 The device is not currently connected but it is a remembered connection 1202 An attempt was made to remember a device that had previously been remembered 1203 No network provider accepted the given network path 1204 The specified network provider name is invalid 1205 Unable to open the network connection profile 1206 The network connection profile is corrupt 1207 Cannot enumerate a non container 1208 An extended error has occurred 1209 The format of the specified group name is invalid 1210 The format of the specified computer name is invalid 1211 The format of the specified event name is invalid 1212 The format of the specified domain name is invalid 1213 The format of the specified service name is invalid 1214 The format of the specified network name is invalid 1215 The format of the specified share name is invalid 1216 The format of the specified password is invalid 1217 The format of the specified message name is invalid 1218 The format of the specified message destination is invalid 1219 The credentials supplied conflict with an existing set of credentials 1220 An attempt was made to establish a session to a network server but there D A are already too many sessions established to that server 1221 The workgroup or domain name is already in use by another computer on the D A network 1222 The network is not present or not started 1223 The operation was cancelled by the user 1224 The requested operation cannot be performed on a file with a user mapped section open 1225 The remote system refused the network connection 1226 The network connection was gracefully closed 1227 The network transport endpoint already has an address associated with it 1228 An address has not yet been associated with the network endpoint 1229 An operation was attempted on a non existent network connection 1230 An invalid operation was attempted on an active network connection 1231 The remote network is not reachable by the transport 1232 The remote system is not reachable by the transport 1233 The remote system does not support the transport protocol 1234 No service is operating at the destination network endpoint D A on the remote system 1235 The request was aborted 1236 The network connection was aborted by the local system 1237 The operation could not be completed A retry should be performed 1238 A connection to the server could not be made because the limit on the number of D A concurrent connections for this account has been reached 1239 Attempting to login during an unauthorized time of day for this account 1240 The account is not authorized to login from this station 1241 The network address could not be used for the operation requested 1242 The service is already registered 1243 The specified service does not exist 1244 The operation being requested was not performed because the user D A has not been authenticated 1245 The operation being requested was not performed because the user D A has not logged on to the network D A The specified service does not exist 1246 Return that wants caller to continue with work in progress 1247 An attempt was made to perform an initialization operation when D A initialization has already been completed 1248 No more local devices 1300 Not all privileges referenced are assigned to the caller 1301 Some mapping between account names and security IDs was not done 1302 No system quota limits are specifically set for this

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/IO/IOResult.htm (2016-02-14)
    Open archived version from archive

  • efg's Delphi Stream I/O
    s TGIFImage EMF TXT AVI WAV cursors and a matrix of binary data Integers and Doubles Requires D4 or above for the dynamic array of binary data The 2D dynamic array is written to a file using a TFileStream Also see Chris Willig s UseNet Post with example of reading file in chunks efg s JPEGSentinelsAreOK function to find bad JPEGs avoid error 52 verifies first two and last two bytes of JPEG are correct Peter Below s UseNet Post about sharing files on a network Some Remarks on TFileStream www undu com Articles 000928f html Delphi Import Export Part II Streams and Bit Fiddling in Delphi Informant July 1998 YUV Lab Reports see YVU 9 YVU 12 example for simultaneously reading three file streams from same file Jens Gruschel s UseNet Post about loading a JPEG from a stream Deepak Shenoy s UseNet Post with file stream example of converting UNIX text to DOS text Example of reading three Sun Raster files as TFileStreams and creating Bitmap efg s Create Mandrill BMP Lab Report Berend s UseNet Post about a CopyFile procedure using TFileStreams Three memory mapped file classes TMapStream TTextMap and TRecordMap Useful when you d like to use Pascal s file of record or textfile types but need memory mapping http delphi icm edu pl ftp d20free mapfiles zip Julian Bucknall got fed up with TFileStream being slow with lots of small data chunks so he set to and wrote a replacement go faster version with efficient buffering Delphi Magazine Issue 29 January 1998 Peter Below s UseNet Post with ConcatFiles procedure Biff Kadidlehopper s UseNet Post to get set the dpi in a bitmap file or bitmap image the biXPelsPerMeter and biYPelsPerMeter values efg s PelsPerMeter example with GetPelsPerMeter procedure to return biXPelsPerMeter and biYPelsPerMeter values and an example based on a UseNet Post by Peter Klein that returns these same values Example based on UseNet post by Peter Klein showing how to extract DPI directly from JPG file TIFileStream IStreams TIMemoryStream IStreams TIStreamAdapter IStreams Dan Russell s UseNet Posting about converting TFileStream to IStream TMapStream Three memory mapped file classes TMapStream TTextMap and TRecordMap Useful when you d like to use Pascal s file of record or textfile types but need memory mapping Options for mutexes encryption file headers Heavily commented code and helpfile included By Deborah Pate www djpate freeserve co uk MapFiles zip TMemoryStream How to move a string into a TMemoryStream or TFileStream http community borland com article 0 1410 26416 00 html efg s Combine files Split file example Combine five given files 1 DAT 5 DAT into a single COMBINED DAT file Split the COMBINED DAT file back into the original files but with a new extension 1 BIN 2 BIN Thomas Kowalski s Drehen90Grad Rotate bitmap 90 degree routine in Unit7 shows how to use a memory stream to access the TBitmapInfo header and the pixel data in a bitmap TMemoryStream Example How to copy the content of a

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/IO/StreamIO.htm (2016-02-14)
    Open archived version from archive



  •