TMT Pascal Programmer's Reference


Table of Contents

1. What's New in TMT Pascal?
2. TMT Pascal Language Description
2.1. Implementation Issues
2.2. Pascal Language Structure
2.2.1. Tokens and Identifiers
2.2.2. Reserved Words
2.2.3. Operators and Delimiters
2.2.4. Program Comments
2.2.5. Constants
2.2.6. TYpes
2.2.7. Declarations
2.2.8. Expressions
2.2.9. Statements
2.2.10. Programs and Units
2.2.11. Dynamic-Link Libraries (DLL's)
2.2.12. Procedures and Functions
2.2.13. OOP Extensions
2.2.14. Open Arrays
2.2.15. User Defined Operators
2.2.16. User Defined Reader Procedure
2.2.17. User Defined Writer Procedure
2.3. Built-in Assembler
2.4. Run-time error codes
3. Compiler Directives
3.1. Conditional Directives
3.2. Switch and Parameter Directives
3.3. Predefined Symbols
4. Standard Units
4.1. AccCtrl Unit
4.2. AclAPI Unit
4.3. ActiveX Unit
4.4. CommCtrl Unit
4.5. CommDlg Unit
4.6. CompMath Unit
4.7. Cpl Unit
4.8. Crt Unit
4.9. D3D Unit
4.10. D3D8 Unit
4.11. D3DApp Unit
4.12. D3DFile Unit
4.13. D3DFont Unit
4.14. D3DRes Unit
4.15. D3DRM Unit
4.16. D3DUtil Unit
4.17. D3DX8 Unit
4.18. Ddeml Unit
4.19. DDraw Unit
4.20. Debug Unit
4.21. DInput Unit
4.22. Dlgs Unit
4.23. DMusic Unit
4.24. Dos Unit
4.25. DOSCall Unit
4.26. DPlay Unit
4.27. DPlay8 Unit
4.28. DPMI Unit
4.28.1. DPMI Unit Types
4.28.2. DPMI Unit Procedures and Functions
4.28.2.1. AllocateDescriptors function
4.28.2.2. AllocDosMemoryBlock function
4.28.2.3. AllocRealModeCallBack function
4.28.2.4. AllocateSpecificDescriptor function
4.28.2.5. CallRealModeFar procedure
4.28.2.6. CallRealModeIRet procedure
4.28.2.7. ClearRmRegs procedure
4.28.2.8. CreateCodeAlias function
4.28.2.9. CreateCodeDescriptor function
4.28.2.10. CreateDataAlias function
4.28.2.11. CreateDataDescriptor function
4.28.2.12. DosMemoryAlloc function
4.28.2.13. DosMemoryFree function
4.28.2.14. FarGetByte function
4.28.2.15. FarGetDWord function
4.28.2.16. FarGetWord function
4.28.2.17. FarPutByte procedure
4.28.2.18. FarPutDWord procedure
4.28.2.19. FarPutWord procedure
4.28.2.20. FreeDescriptor function
4.28.2.21. FreeDosMemoryBlock function
4.28.2.22. FreePhysicalMap function
4.28.2.23. FreeRealModeCallBack function
4.28.2.24. GetCS function
4.28.2.25. GetDisableInterruptState function
4.28.2.26. GetDPMIIntVec function
4.28.2.27. GetDPMIVer function
4.28.2.28. GetDS function
4.28.2.29. GetEnableInterruptState function
4.28.2.30. GetExceptionHandler function
4.28.2.31. GetFreeMemoryInfo function
4.28.2.32. GetInterruptState function
4.28.2.33. GetRealModeIntVec function
4.28.2.34. GetSegmentBaseAddress function
4.28.2.35. GetSelectorAccessRights function
4.28.2.36. MapPhysicalToLinear function
4.28.2.37. RealModeInt function
4.28.2.38. ResizeDosMemoryBlock function
4.28.2.39. SegmentToDescriptor function
4.28.2.40. SelectorInc function
4.28.2.41. SetDPMIIntVec function
4.28.2.42. SetExceptionHandler function
4.28.2.43. SetRealModeIntVec function
4.28.2.44. SetSelectorAccessRights function
4.28.2.45. SetSelectorBaseAddress function
4.28.2.46. SetSelectorLimit function
4.29. DSetup Unit
4.30. DShow Unit
4.31. DX7toDX8 Unit
4.32. DXFile Unit
4.33. DXUtil Unit
4.34. ErrCodes Unit
4.35. FDebug Unit
4.36. Graph Unit
4.36.1. Graph Unit Types, Constants and Variables
4.36.2. Graph Unit Procedures and Functions
4.36.2.1. AnalizeRGBColor procedure
4.36.2.2. Arc procedure
4.36.2.3. Bar procedure
4.36.2.4. Bar3D procedure
4.36.2.5. Circle procedure
4.36.2.6. ClearDevice procedure
4.36.2.7. ClearPage procedure
4.36.2.8. ClearViewPort procedure
4.36.2.9. CliRetrace procedure
4.36.2.10. CliHRetrace procedure
4.36.2.11. CloseGraph procedure
4.36.2.12. DetectSVGAMode procedure
4.36.2.13. DrawEllipse procedure
4.36.2.14. DrawHLine procedure
4.36.2.15. DrawPoly procedure
4.36.2.16. Ellipse procedure
4.36.2.17. ExpandFill procedure
4.36.2.18. FillCircle procedure
4.36.2.19. FillEllipse procedure
4.36.2.20. FillPoly procedure
4.36.2.21. FillTriangle procedure
4.36.2.22. FlipImageOX procedure
4.36.2.23. FlipImageOY procedure
4.36.2.24. FlipToMemory procedure
4.36.2.25. FlipToScreen procedure
4.36.2.26. FloodFill procedure
4.36.2.27. GetActivePage function
4.36.2.28. GetAspectRatio procedure
4.36.2.29. GetBytesPerScanLine
4.36.2.30. GetColor function
4.36.2.31. GetDefaultPalette procedure
4.36.2.32. GetFillColor function
4.36.2.33. GetFillPattern procedure
4.36.2.34. GetFillSettings procedure
4.36.2.35. GetGraphBufSize function
4.36.2.36. GetGraphMode function
4.36.2.37. GetHTextel procedure
4.36.2.38. GetImage procedure
4.36.2.39. GetLfbAddress function
4.36.2.40. GetLineSettings procedure
4.36.2.41. GetLogicalPage procedure
4.36.2.42. GetMaxColor function
4.36.2.43. GetMaxPage function
4.36.2.44. GetMaxX function
4.36.2.45. GetMaxY function
4.36.2.46. GetOemProductName function
4.36.2.47. GetOemProductRev function
4.36.2.48. GetOemString function
4.36.2.49. GetOemVendorName function
4.36.2.50. GetPageDC function
4.36.2.51. GetPageSize function
4.36.2.52. GetPalette procedure
4.36.2.53. GetPixel function
4.36.2.54. GetRGBPalette procedure
4.36.2.55. GetScreenHeight function
4.36.2.56. GetScreenWidth function
4.36.2.57. GetTextSettings procedure
4.36.2.58. GetTranspSettings procedure
4.36.2.59. GetVbeCapabilities function
4.36.2.60. GetVbeInfo procedure
4.36.2.61. GetVbeModeInfo procedure
4.36.2.62. GetVbeModesList procedure
4.36.2.63. GetVbeVersion function
4.36.2.64. GetViewSettings procedure
4.36.2.65. GetVisualPage function
4.36.2.66. GetWindowHandle function
4.36.2.67. GetWriteMode function
4.36.2.68. GetX function
4.36.2.69. GetY function
4.36.2.70. GraphDefaults procedure
4.36.2.71. GraphErrorMsg function
4.36.2.72. GraphResult function
4.36.2.73. HRetrace procedure
4.36.2.74. ImageSize function
4.36.2.75. InvertImage procedure
4.36.2.76. IsLfbUsed function
4.36.2.77. Line procedure
4.36.2.78. LineRel procedure
4.36.2.79. LineTo procedure
4.36.2.80. MoveRel procedure
4.36.2.81. MoveTo procedure
4.36.2.82. OutCharXY procedure
4.36.2.83. OutText procedure
4.36.2.84. OutTextXY procedure
4.36.2.85. PutHTextel procedure
4.36.2.86. PutImage procedure
4.36.2.87. PutPixel procedure
4.36.2.88. PutSprite procedure
4.36.2.89. Rectangle procedure
4.36.2.90. ReleasePageDC procedure
4.36.2.91. RestoreCrtMode procedure
4.36.2.92. Retrace procedure
4.36.2.93. RGBColor procedure
4.36.2.94. SetActivePage procedure
4.36.2.95. SetAllPalette procedure
4.36.2.96. SetAspectRatio procedure
4.36.2.97. SetBkColor procedure
4.36.2.98. SetColor procedure
4.36.2.99. SetCustomFont procedure
4.36.2.100. SetFillColor procedure
4.36.2.101. SetFillPattern procedure
4.36.2.102. SetFillStyle procedure
4.36.2.103. SetGraphBufSize procedure
4.36.2.104. SetGraphMode procedure
4.36.2.105. SetLineStyle procedure
4.36.2.106. SetLogicalPage procedure
4.36.2.107. SetNormalMode procedure
4.36.2.108. SetPalette procedure
4.36.2.109. SetRGBPalette procedure
4.36.2.110. SetScreenStart procedure
4.36.2.111. SetSVGAMode procedure
4.36.2.112. SetTextJustify procedure
4.36.2.113. SetTextStyle procedure
4.36.2.114. SetSplineLineSteps procedure
4.36.2.115. SetTranspMode procedure
4.36.2.116. SetViewPort procedure
4.36.2.117. SetVirtualMode procedure
4.36.2.118. SetVisualPage procedure
4.36.2.119. SetWriteMode procedure
4.36.2.120. Spline procedure
4.36.2.121. Stretch procedure
4.36.2.122. TextHeight function
4.36.2.123. TextWidth function
4.36.2.124. TotalVbeMemory function
4.36.2.125. TotalVbeModes function
4.36.2.126. Triangle procedure
4.37. HtmlHlp Unit
4.38. ImageHlp Unit
4.39. Imm Unit
4.40. Keyboard Unit
4.41. LM Unit
4.42. LZExpand Unit
4.43. MAPI Unit
4.44. Math Unit
4.44.1. Math Unit Constants
4.44.2. Math Unit Procedures and Functions
4.44.2.1. ArcCos function
4.44.2.2. ArcCosH function
4.44.2.3. ArcCotan function
4.44.2.4. ArcCotanH function
4.44.2.5. ArcCsc function
4.44.2.6. ArcCscH function
4.44.2.7. ArcSec function
4.44.2.8. ArcSecH function
4.44.2.9. ArcSin function
4.44.2.10. ArcSinH function
4.44.2.11. ArcTan2 function
4.44.2.12. ArcTanH function
4.44.2.13. Ceil function
4.44.2.14. CelsToFahr function
4.44.2.15. ChgSign function
4.44.2.16. CmToInch function
4.44.2.17. CopySign function
4.44.2.18. CosH function
4.44.2.19. Cotan function
4.44.2.10. Csc function
4.44.2.21. CscH function
4.44.2.22. Cterm function
4.44.2.23. CycleToRad function
4.44.2.24. DeltaPercent function
4.44.2.25. DegToRad function
4.44.2.26. Evaluate procedure
4.44.2.27. FahrToCels function
4.44.2.28. Floor function
4.44.2.29. FMod function
4.44.2.20. Fv function
4.44.2.31. GalToLitre function
4.44.2.32. GradToRad function
4.44.2.33. Hypot function
4.44.2.34. InchToCm function
4.44.2.35. KgToLb function
4.44.2.36. LbToKg function
4.44.2.37. LitreToGal function
4.44.2.38. Log10 function
4.44.2.39. Log2 function
4.44.2.30. LogN function
4.44.2.41. LRotL function
4.44.2.42. LRotR function
4.44.2.43. Max function
4.44.2.44. Min function
4.44.2.45. Modf function
4.44.2.46. Npv function
4.44.2.47. Percent function
4.44.2.48. Pmt function
4.44.2.49. Power function
4.44.2.40. Pv function
4.44.2.51. RadToCycle function
4.44.2.52. RadToDeg function
4.44.2.53. RadToGrad function
4.44.2.54. Rate function
4.44.2.55. Sec function
4.44.2.56. SecH function
4.44.2.57. Sgn function
4.44.2.58. SinH function
4.44.2.59. Sln function
4.44.2.50. Syd function
4.44.2.61. Tan function
4.44.2.62. TanH function
4.44.2.63. Term function
4.45. Messages Unit
4.46. MMedia Unit
4.47. MMSystem Unit
4.48. Mouse Unit
4.49. Nb30 Unit
4.50. OpenGL Unit
4.51. OS2PMAPI Unit
4.52. OS2Ord Unit
4.53. OS2Types Unit
4.54. PenWin UNit
4.55. Printer Unit
4.56. Regstr Unit
4.57. RichEdit Unit
4.58. ShellAPI Unit
4.59. ShlObj Unit
4.60. Strings Unit
4.60.1. Strings Unit Overloaded Operators
4.60.2. Strings Unit Procedures and Functions
4.60.2.1. Align function
4.60.2.2. AnsiCompareStr function
4.60.2.3. AnsiLowerCase function
4.60.2.4. AnsiCompareText function
4.60.2.5. AnsiStrComp function
4.60.2.6. AnsiStrIComp function
4.60.2.7. AnsiStrLComp function
4.60.2.8. AnsiStrLIComp function
4.60.2.9. AnsiStrLower function
4.60.2.10. AnsiStrUpper function
4.60.2.11. AnsiUpperCase function
4.60.2.12. AppendPathDelimiter function
4.60.2.13. Bin function
4.60.2.14. Dup_CI function
4.60.2.15. Dup_SI function
4.60.2.16. Fix function
4.60.2.17. FloatToStr function
4.60.2.18. Fls function
4.60.2.19. Flt function
4.60.2.20. Hex function
4.60.2.21. HexVal function
4.60.2.22. IntToBin function
4.60.2.23. IntToHex function
4.60.2.24. IntToStr function
4.60.2.25. IsDelimiter function
4.60.2.26. IsPathDelimiter function
4.60.2.27. IsValidIdent function
4.60.2.28. LastDelimiter function
4.60.2.29. LowerCase function
4.60.2.30. QuotedStr function
4.60.2.31. StrAppend procedure
4.60.2.32. StrAppendC procedure
4.60.2.33. StrCat function
4.60.2.34. StrComp function
4.60.2.35. StrCopy function
4.60.2.36. StrDispose procedure
4.60.2.37. StrECopy function
4.60.2.38. StrEnd function
4.60.2.39. StrLCat function
4.60.2.40. StrIComp function
4.60.2.41. StrLComp function
4.60.2.42. StrLCopy function
4.60.2.43. StrLen function
4.60.2.44. StrLIComp function
4.60.2.45. StrLower function
4.60.2.46. StrMove function
4.60.2.47. StrNew function
4.60.2.48. StrPas function
4.60.2.49. StrPCopy function
4.60.2.50. StrPos function
4.60.2.51. StrRScan function
4.60.2.52. StrScan function
4.60.2.53. StrToInt function
4.60.2.54. StrToIntDef function
4.60.2.55. StrUpper function
4.60.2.56. Trim function
4.60.2.57. TrimLeft function
4.60.2.58. TrimRight function
4.60.2.59. Uns function
4.60.2.60. UpperCase function
4.60.2.61. Whl function
4.61. System Unit
4.61.1. System Unit Variables
4.61.2. System Unit Procedures and Functions
4.61.2.1. Abs function
4.61.2.2. Addr function
4.61.2.3. Append procedure
4.61.2.4. ArcTan function
4.61.2.5. Assert procedure
4.61.2.6. Assign procedure
4.61.2.7. Assigned function
4.61.2.8. BlockRead procedure
4.61.2.9. BlockWrite procedure
4.61.2.10. Break procedure
4.61.2.11. ChDir procedure
4.61.2.12. Chr function
4.61.2.13. Close procedure
4.61.2.14. CompareMem function
4.61.2.15. Concat function
4.61.2.16. Continue procedure
4.61.2.17. Copy function
4.61.2.18. Cos function
4.61.2.19. Dec procedure
4.61.2.20. Delete procedure
4.61.2.21. Dispose procedure
4.61.2.22. Eof function
4.61.2.23. Eoln function
4.61.2.24. Erase procedure
4.61.2.25. Exit procedure
4.61.2.26. Exclude procedure
4.61.2.27. Exp function
4.61.2.28. FilePos function
4.61.2.29. FileSize function
4.61.2.30. FillChar procedure
4.61.2.31. Flush procedure
4.61.2.32. Frac function
4.61.2.33. FreeMem procedure
4.61.2.34. GetDir procedure
4.61.2.35. GetLocaleStr function
4.61.2.36. GetMem procedure
4.61.2.37. Halt procedure
4.61.2.38. Hi function
4.61.2.39. High function
4.61.2.40. Inc procedure
4.61.2.41. Include procedure
4.61.2.42. Insert procedure
4.61.2.43. Int function
4.61.2.44. IOResult function
4.61.2.45. Length function
4.61.2.46. Ln function
4.61.2.47. Lo function
4.61.2.48. LoCase function
4.61.2.49. Low function
4.61.2.50. MaxAvail function
4.61.2.51. MemAvail function
4.61.2.52. MkDir procedure
4.61.2.53. Move procedure
4.61.2.54. New procedure
4.61.2.55. Odd function
4.61.2.56. Ofs function
4.61.2.57. Ord function
4.61.2.58. ParamCount function
4.61.2.59. ParamStr function
4.61.2.60. Pi function
4.61.2.61. Pos function
4.61.2.62. Pred function
4.61.2.63. Ptr function
4.61.2.64. QSort procedure
4.61.2.65. Random function
4.61.2.66. Randomize procedure
4.61.2.67. Read procedure
4.61.2.68. ReadLn procedure
4.61.2.69. Rename procedure
4.61.2.70. Reset procedure
4.61.2.71. ReWrite procedure
4.61.2.72. RmDir procedure
4.61.2.73. Round function
4.61.2.74. Round64 function
4.61.2.75. RunError procedure
4.61.2.76. Seek procedure
4.61.2.77. SeekEof procedure
4.61.2.78. SeekEoln procedure
4.61.2.79. SetString procedure
4.61.2.80. SetTextBuf procedure
4.61.2.81. Sin function
4.61.2.82. SizeOf function
4.61.2.83. Sqr function
4.61.2.84. Sqrt function
4.61.2.85. Str procedure
4.61.2.86. Succ function
4.61.2.87. Swap function
4.61.2.88. SwapArgs procedure
4.61.2.89. Trunc function
4.61.2.90. Trunc64 function
4.61.2.91. Truncate procedure
4.61.2.92. UpCase function
4.61.2.93. Val procedure
4.61.2.94. Win32BuildNumber function
4.61.2.95. Win32MajorVersion function
4.61.2.96. Win32MinorVersion function
4.61.2.97. Win32Platform function
4.61.2.98. Write procedure
4.61.2.99. WriteLn procedure
4.62. TlHelp32 Unit
4.63. URLMon Unit
4.64. Use16 Unit
4.65. Use32 Unit
4.66. WinCRT
4.67. WinDNS Unit
4.68. WinDos Unti
4.69. Windows Unit
4.70. WinInet Unit
4.71. WinSock Unit
4.72. WinSpool Unit
4.73. WinSvc Unit
4.74. ZenTimer Unit
4.75. ZMouse Unit
5. IDE (Integrated Development Environment)
5.1. Bookmarks
5.2. Code Templates
5.3. Compiler Options
5.4. Directories
5.5. Debug Search Directory
5.6. Display
5.7. Editor
5.8. Editor Shortcuts
5.9. Compiler and Debugger Shortcuts
5.10. Debugger Commands
6. Win32 Programming
6.1. Writing Win32 GUI Applications
6.2. Structure of Window Procedure
6.3. Designing a Window Procedure
6.4. Associating a Window Procedure with a Window Class
6.5. Example of Win32 GUI Application
6.6. Writing Win32 Control Panel Applications
6.7. Application Responsibilities and Operation
6.8. Application Entry-Point Function
6.9. Writing Dinamic-Link Libraries (DLLs)
6.10. Using Dinamic-Link Libraries (DLLs)
6.11. Multimedia Applications Development Using MMedia Unit
7. PMODE/W MSDOS Extender
7.1. About PMODE/W
7.2. PMODE/W Supported DPMI INT 31h functions
7.2.1. Function 0000 - Allocate Descriptors
7.2.2. Function 0001 - Free Descriptor
7.2.3. Function 0002 - Segment to Descriptor
7.2.4. Function 0003 - Get Selector Increment Value
7.2.5. Function 0006 - Get Segment Base Address
7.2.6. Function 0007 - Set Segment Base Address
7.2.7. Function 0008 - Set Segment Limit
7.2.8. Function 0009 - Set Descriptor Access Rights
7.2.9. Function 000A - Create Alias Descriptor
7.2.10. Function 000B - Get Descriptor
7.2.11. Function 000C - Set Descriptor
7.2.12. Function 0100 - Allocate DOS Memory Block
7.2.13. Function 0101 - Free DOS Memory Block
7.2.14. Function 0102 - Resize DOS Memory Block
7.2.15. Function 0200 - Get Real Mode Interrupt Vector
7.2.16. Function 0201 - Set Real Mode Interrupt Vector
7.2.17. Function 0202 - Get Processor Exception Handler Vector
7.2.18. Function 0203 - Set Processor Exception Handler Vector
7.2.19. Function 0204 - Get Protected Mode Interrupt Vector
7.2.20. Function 0205 - Set Protected Mode Interrupt Vector
7.2.21. Function 0300 - Simulate Real Mode Interrupt
7.2.22. Function 0301 - Call Real Mode Procedure With Far Return Frame
7.2.23. Function 0302 - Call Real Mode Procedure With IRET Frame
7.2.24. Function 0303 - Allocate Real Mode Callback Address
7.2.25. Function 0304 - Free Real Mode Callback Address
7.2.26. Function 0305 - Get State Save/Restore Addresses
7.2.27. Function 0306 - Get Raw Mode Switch Addresses
7.2.28. Function 0400 - Get Version
7.2.29. Function 0500 - Get Free Memory Information
7.2.30. Function 0501 - Allocate Memory Block
7.2.31. Function 0502 - Free Memory Block
7.2.32. Function 0503 - Resize Memory Block
7.2.33. Function 0800 - Physical Address Mapping
7.2.34. Function 0801 - Free Physical Address Mapping
7.2.35. Function 0900 - Get and Disable Virtual Interrupt State
7.2.36. Function 0901 - Get and Enable Virtual Interrupt State
7.2.37. Function 0902 - Get Virtual Interrupt State
7.2.38. Function EEFF - Get DOS Extender Information
8. Appendix. Win32 Family Operating Systems
9. Contacting TMT Development Corporation



Copyright © 1998-2002 by TMT Development Corporation. All rights reserved.
Questions, comments, and suggestions to support@tmt.com.
HTML arrangement by Valery Votintsev