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