home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 461 / CS_724.ZIP / CS.DOC next >
Encoding:
Text File  |  1993-01-09  |  8.0 KB  |  248 lines

  1.  
  2. CodeSmith and its documentation are copyright 1990 - 1993 by:
  3.  
  4. Don Allred
  5. P.O. Box 56885
  6. Sherman Oaks, CA 91413
  7.  
  8. All rights are reserved.
  9.  
  10. see end of file readme.cs for ordering information.
  11.  
  12.  
  13. The purchaser of CodeSmith is granted a license to use it, to make
  14. copies of the original distribution disk for backups, and to install
  15. it on one or more systems as long as there is no possibility that it
  16. will be used on more than one of those systems at a time. This does
  17. not constitute a site license; it is intended to allow a single
  18. programmer to install CodeSmith on all of the machines that he uses,
  19. but only to allow him to use it on one of those machines at once. In
  20. essence, CodeSmith is licensed to a single user, who is the only
  21. person permitted to use it.
  22.  
  23. This license applies to the development of software using CodeSmith,
  24. not to the redistribution of that software. Software in executable
  25. form that includes code produced by CodeSmith may be sold, given
  26. away, or otherwise redistributed with no additional fees to, and no
  27. special license required from, Don Allred. You may not, however,
  28. redistribute CodeSmith in part or in whole.
  29.  
  30. Clipper is a registered trademark of the Nantucket Corporation.
  31.  
  32.  
  33.  
  34.  
  35.      SYSTEM REQUIREMENTS
  36.  
  37. To develop applications using CodeSmith, you must have a computer
  38. running MS-DOS, and capable of compiling and linking Clipper 5.01
  39. programs. You must have a copy of Clipper 5.01 and a linker
  40. compatible with Microsoft object modules and libraries.  We have
  41. tested CodeSmith with these linkers:
  42.  
  43.      BLINK, Inc. BLINKER version 1.5, 1.51 & 2.0
  44.      Hyperkinetix Warplink version 2.0
  45.      Pocket Soft .RTLink version 3.13 & 5.00
  46.  
  47. Programs created with CodeSmith must run on an IBM PC or compatible
  48. computer.
  49.  
  50.  
  51.      INTRODUCTION
  52.  
  53. CodeSmith is a Clipper 5.01 application generator, a program which
  54. writes programs. It's goal is to provide you the developer with near
  55. instant complete single database, multiple screen, network/single
  56. user applications without writing a line of code.
  57.  
  58. This is done by designing a data screen with CodeSmith's internal
  59. screen painter. You can define fields, text, lines, boxes, colors,
  60. pictures, valids, whens, index keys and even insert your own custom
  61. code!
  62.  
  63. Your design can be based on all or part of an existing database, one
  64. or more previous designs or you can begin from scratch. In any case
  65. CodeSmith will write the programs to manage your new/old database.
  66.  
  67. CodeSmith generates the full and complete source code for your
  68. application design with no hidden libraries. The only system
  69. requirements are those needed by Clipper itself.
  70.  
  71. In addition to generating a complete application, you can also
  72. generate a "basic application" which is almost identical to the full
  73. application except there is no main menu. In this way you may create
  74. applications which can be called from within your main application by
  75. inserting a function call with a user defined field.
  76.  
  77. Code fragments consisting of your screens and procedures to create
  78. your DBF structure in Summer '87 and 5.01 can also be generated. A
  79. real useful tool when changing an existing application or when you
  80. just need a screen.
  81.  
  82.  
  83. So that you can get an idea of what to expect from CodeSmith, let's
  84. quickly generate a sample application using a design provided. Later
  85. we will go over each command in CodeSmith and create an application
  86. from scratch.
  87.  
  88.  
  89.  
  90.      GENERATING THE SAMPLE APPLICATION
  91.  
  92. From the DOS prompt type CS <Enter>.
  93.  
  94. Using the arrows keys, highlight SAMPLE.CS1 and press <Enter>.
  95.  
  96. Now you should have an on screen representation of the sample
  97. application.  Press <M> (that's just the letter M) for the Main Menu.
  98.  
  99. Using the arrow keys, move down to and highlight Generate Full
  100. Application then  press <Enter>.
  101.  
  102. Application Name? The name SAMPLE is already typed in so just press
  103. <Enter>.
  104.  
  105. Database Name? Again the name SAMPLE is provided so press <Enter>.
  106.  
  107. Alias Name? Same thing, just press <Enter>.
  108.  
  109. Multi-User? Select YES
  110.  
  111. Create Generic Files Too?  Select YES.
  112.  
  113. "Your custom PRG to link in". Press <Enter> to skip.
  114.  
  115. "Quik TBrowse PRG to link in". Press <Enter> to skip.
  116.  
  117. "Quik TBrowse function name". Press <Enter> to skip.
  118.  
  119. Accept, Re-Try, Cancel?   Select Accept
  120.  
  121. CodeSmith will now generate about 5,000 lines of 5.01 program code. A
  122. listing of the file names being generated is shown so that you can
  123. monitor its progress.
  124.  
  125. When finished you see a prompt about compiling and linking the
  126. application.
  127.  
  128. Press <ESC> four times, then press YES to Exit to DOS.
  129.  
  130.  
  131. Here is what we just created:
  132.  
  133. SAMPLE.PRG      Main Menu
  134.  
  135. SAMPLADD.PRG    Add Records
  136.  
  137. SAMPLGET.PRG    View/Search/Edit Record
  138.  
  139. SAMPLHLP.PRG    Help File
  140.  
  141. SAMPLE.MAK      Rmake Make file
  142.  
  143. SAMPLE.LNK      Blinker Link File
  144.  
  145. SAMPLE.RTL      RTlink Link File
  146.  
  147. SAMPLE.WL       WarpLink Link File
  148.  
  149. GO.BAT          Generic, used to compile
  150.                 and link application.
  151.  
  152. CS.CH           Generic Header File.
  153.                 Contains system colors.
  154. CSGENRL.PRG     Generic Functions and
  155.                 Procedures
  156.  
  157. CSLABEL.PRG     Generic Label Maker
  158.  
  159. CSVIEW.PRG      Generic Browser
  160.  
  161. CSREPORT.PRG    Generic Report Writer
  162.  
  163. CSQBE.PRG       Generic Query by Example
  164.                 Complex Filter Builder
  165.  
  166. CSLOCKS.PRG     Networking Functions
  167.  
  168.  
  169. To compile and link our sample application, at the DOS prompt type GO
  170. SAMPLE.
  171.  
  172. GO.BAT will tell Rmake to process SAMPLE.MAK which will compile all
  173. programs into object files. Next it will tell SAMPLE.RTL to link the
  174. application using RTlink.
  175.  
  176. If you have a problem compiling or linking make sure that your
  177. Clipper, libraries, include files and linker are in the path.
  178.  
  179. If prefer to use Blinker or WarpLink, just go into GO.BAT and move
  180. the REM statement.
  181.  
  182.  
  183.  
  184.                OWN YOUR OWN
  185.  
  186. CodeSmith and it's applications support 25, 43 and 50 line displays.
  187. The default for both is the current display mode. If for example you
  188. are currently in 25 line mode and you want to generate an application
  189. for 50 line VGA displays, use the <L> setmode()/ Lines option. This
  190. will give you twice the screen area to work with. The finished
  191. application defaults to the current mode so begin application by
  192. typing SAMPLE 50.
  193.  
  194.  
  195. At first glance it may appear that CodeSmith has a lot of options to
  196. deal with, but not really. With the exception of entering INDEX KEYS,
  197. (you can't search without an index) the others can be ignored. With a
  198. little practice you can create a full working application in a few
  199. minutes while your customer watches. Now your customer can begin data
  200. entry, impressed at how efficient you are, while you return to your
  201. office and . . .
  202.  
  203. CodeSmith is intended to relieve you of the mundane aspects of
  204. programming. I use it for all my simple applications and as a
  205. starting point for complex applications.
  206.  
  207. CodeSmith is being actively developed with changes on a daily basis.
  208. Future versions will include relations and developer defined pop-up
  209. validation functions. Let me know what you need.
  210.  
  211.  
  212. Speaking of relations, with our new product Quik TBrowse, you can
  213. have CodeSmith applications with    one to many relations. Just design
  214. your parent/child/ grand child realtions using Quik TBrowse and tell
  215. CodeSmith to link in the generated application. Quik TBrowse is
  216. available for the low price of $49.00
  217.  
  218. The current (January 1993) upgrade policy is 50% of whatever you paid for
  219. your first version.
  220.  
  221. Beta testers get free upgrades.
  222.  
  223. CodeSmith may be purchased from Programmer's Warehouse (800) 323-1809
  224. or you can order directly from me or Max Bressel in Europe.
  225.  
  226. If you have any problems, please give me a call, I want you to be
  227. productive.
  228.  
  229. I welcome your comments and suggestions.
  230.  
  231. Don Allred
  232. P.O. Box 56885
  233. Sherman Oaks, CA 91413
  234. (818) 783-5837 Voice
  235. (818) 783-1277 FAX
  236.  
  237. Europians may want to contact Max Bressel at:
  238.  
  239. SOFTSOL                    Tel.:+49-40-7665764
  240. Salzburger Haeuser 4       Fax :+49-40-7665664
  241. 2100 Hamburg 90            BBS :+49-40-7665527/8
  242. Germany                    CIS :100112,3401
  243.  
  244.  
  245. Happy Programming!
  246.  
  247. January 2, 1993
  248.