home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / PBAPI10.ZIP / TEMPLATE.BAS < prev    next >
BASIC Source File  |  1998-02-21  |  4KB  |  82 lines

  1. ' ─────────────────────────────────────────────────────────────────────────
  2. ' Program Title: Template for PBAPI v1.0
  3. '     Copyright: 
  4. '        Author: 
  5. ' Last Modified: 02/21/98
  6. ' ─────────────────────────────────────────────────────────────────────────
  7. '   Description: Program template for PowerBASIC programmers to control
  8. '                exactly how PowerBASIC generates your executables.
  9. ' ─────────────────────────────────────────────────────────────────────────
  10. '         Notes:
  11. ' ─────────────────────────────────────────────────────────────────────────
  12. '       History:
  13. ' ─────────────────────────────────────────────────────────────────────────
  14. $CPU 80386                   ' Requires a 386 system or faster
  15.  
  16. $OPTIMIZE SPEED              ' make fastest possible executable
  17.  
  18. '$COMPILE EXE "TEMPLATE.EXE" ' compile to an EXE
  19.  
  20. $DEBUG MAP      OFF         ' turn off map file generation
  21. $DEBUG PBDEBUG  OFF         ' don't include pbdebug support in our executable
  22.  
  23. $LIB COM        OFF         ' turn off PowerBASIC's communications library.
  24. $LIB CGA        OFF         ' turn off PowerBASIC's CGA graphics library.
  25. $LIB EGA        OFF         ' turn off PowerBASIC's EGA graphics library.
  26. $LIB VGA        OFF         ' turn off PowerBASIC's VGA graphics library.
  27. $LIB LPT        OFF         ' turn off PowerBASIC's printer support library.
  28. $LIB IPRINT     OFF         ' turn off PowerBASIC's interpreted print library.
  29. $LIB FULLFLOAT  OFF         ' turn off PowerBASIC's floating point support.
  30.  
  31. $ERROR ALL                  ' Set for All Error checks
  32.  
  33. $COM    0                   ' set communications buffer to nothing
  34. $STRING 32                  ' set largest string size at 32k
  35. $STACK  8192                ' let's use a 8k stack
  36. $SOUND  1                   ' smallest music buffer possible
  37.  
  38. $DIM ALL                    ' forces all Varibles and Arrays to be
  39.                             ' pre-dementioned before use.
  40.  
  41. $DYNAMIC                    ' all arrays will be dynamic by default
  42.  
  43. $OPTION CNTLBREAK OFF       ' don't allow Ctrl-Break to exit program
  44.  
  45. DEFINT A-Z                  ' default all variables to integers for maximum
  46.                             ' speed and minimum size
  47. '============================================================================
  48.  
  49. '============================================================================
  50. '                          DECLARATIONS SECTION
  51. '============================================================================
  52. ' ** THIS SECTION IS FOR LINKS AND INCLUDES STATMENTS **
  53.  
  54. $LINK "G:\PB35\TBAPI10\PBAPI10.PBL"    ' ** SET THIS LINE TO YOUR PATH **
  55. $INCLUDE "G:\PB35\TBAPI10\PBAPI10.INC" ' ** SET THIS LINE TO YOUR PATH **
  56.  
  57. '---------------------------------------------------------------------------
  58. ' ** DECLARE LOCAL SUB's BELOW THAT WILL BE USED IN THIS PROGRAM **
  59. '
  60. '---------------------------------------------------------------------------
  61. '* DECLARE ALL LOCAL AND SHARED VARIABLES USED IN MAIN PROGRAM BETWEEN SUBS *
  62. '
  63.  
  64. '----------------------------------------------------------------------------
  65. ' ** SET THIS LINE BELOW TO YOUR TRIBBS MAIN NODE's DIRECTORY **
  66.  
  67. TBNode1sMainDirectory = "E:\TRIBBS"
  68. '============================================================================
  69.  
  70. '============================================================================
  71. '                         ** MAIN PROGRAM BODY **
  72. '============================================================================
  73.  
  74. CLS ' Clears the Screen
  75.  
  76. Print "Sample Template!"
  77.  
  78.  
  79.  
  80. END                                  ' End/Exit Program
  81.  
  82.