home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / windows / wbtrv.zip / READ.ME < prev    next >
Text File  |  1990-11-03  |  6KB  |  126 lines

  1. Actor 3.0 classes and related files for using Novell's Windows 3.0 version
  2. of the Btrieve 5.10 database manager.
  3.  
  4. These Actor classes and related files are placed in the public domain by
  5. Silverwood Software and Philip Williams on Novemeber 1, 1990.
  6. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7.  
  8. In order to use these classes, you must have Novell's Windows 3.0 version
  9. of the Btrieve database manager which has the DLL (Dynamic Link Library)
  10. that is needed to initialize and make calls to the Btrieve database
  11. manager.  You must also be familiar with Btrieve's high level language
  12. interface function call.  That function is a six argument function call
  13. that returns a status code based upon the success or lack of success of
  14. a Btrieve call.  The Windows version adds an additional seventh
  15. argument, called the key buffer length (which is always set to 255).
  16.  
  17. As of this writing, the Windows version must run as a client based
  18. manager rather than as a server based manager.  The reason is that the
  19. Btrieve Requestor which is needed for server based operations is not yet
  20. available.  What this means is that each workstation on a network must
  21. load the Btrieve manager into its memory.  To the programmer it does not
  22. matter whether Btrieve is client based or server based, or even whether
  23. it is on a network or a single user machine... the calls made to Btrieve
  24. are essentially the same.  A program that has been set up for network
  25. operation will run with no changes on a single user setup.  In fact
  26. Novell has stopped producing the single user version of Btrieve.
  27.  
  28. I am placing these classes in the public domain.  I have included a
  29. small ACT file that loads the necessary classes and offers some
  30. Workspace operations to initialize the DLL and Btrieve, open a database,
  31. read the first record and close the database.  In order to perform these
  32. operations, you must have an existing Btrieve database and must change
  33. the appropriate text in the ACT file to reflect the characteristics of
  34. your database.  The text areas that need changing are enclosed in < >
  35. type brackets.
  36.  
  37. I have also created a simple application that uses a customer list type
  38. of database, and displays records in a versatile browse screen window
  39. that is completely Windows aware in terms of resizing, etc.  It is not
  40. included in this package.  However, for a $25 fee I will send you the
  41. application's classes and related files which includes the Btrieve DLL. 
  42. I believe the fee is very reasonable.  Being relatively new to Actor,
  43. all of this development has taken a number of weeks of work.  
  44.  
  45. I can be reached by the following means:
  46.  
  47.    by voice phone at (212) 447-6808
  48.    by FAX at (212) 213-2111
  49.    by calling the Silverwood BBS at (212) 447-6732  (Hayes 9600 baud)
  50.    by calling Compuserve: my CIS number is 71121,2054
  51.  
  52.    Address:  Philip Williams
  53.              Silverwood Software
  54.              120 E.34th St. #21F
  55.              NY, NY  10016
  56.  
  57.  
  58. And now a bit about the files I am placing in the public domain.  If you
  59. have any problems with them or reactions to them or suggestions, please
  60. contact me.
  61.  
  62.  
  63. The files:
  64. ~~~~~~~~~
  65. If you are a Btrieve user, you know that the entire interface to Btrieve
  66. is through one function call and that the first argument to the function
  67. call is an operation code, i.e. a code telling Btrieve what to do. 
  68. Currently, in the Windows version of Btrieve, there are 40 operation
  69. codes.  They are #define'd  and listed in the WBTRV.H file.  
  70.  
  71. The BTRV.CLS file contains a decendant class of Actor's Library class. 
  72. The class name in the file is Btrv.  It is necessary to initialize and
  73. uninitialize the Btrieve DDL.  It also contains two methods for opening
  74. and closing Btrieve database files.  Both of these methods use another
  75. very important method in the class: the WBtrv method.  WBtrv is the
  76. method used to make the seven argument call by which all interaction
  77. with Btrieve is accomplished.  With the exception of Actor's "self" and
  78. the additional key buffer length argument, it is virtually the same as
  79. the normal Btrv function call used by other high level languages such as
  80. Pascal and C, etc.
  81.  
  82. The RECORD.CLS file contains a decendant of the Actor Object class.  It
  83. is called Record.  Its main purpose is to allow for the use of record
  84. fields in an array format.
  85.  
  86. The BTRVRECO.CLS file contains a decendant of the Record class.  Its
  87. methods are primarily used to create the proper formats for the
  88. arguments that are sent to and received from the Btrieve DLL by way of
  89. the WBtrv method in the Btrv class.
  90.  
  91. The WBTRV.LOD file is used to load the proper classes into an Actor
  92. image.  
  93.  
  94.  
  95. Where to put the files:
  96. ~~~~~~~~~~~~~~~~~~~~~~
  97. The WBTRV.H file should be copied into your \ACTOR\RES subdirectory. 
  98. The CLS files should go into \ACTOR\CLASSES and the WBTRV.ACT and
  99. WBTRV.LOD files should be in the main \ACTOR directory.  Fianlly,
  100. put your Btrieve WBTRCALL.DLL file in the same directory that contains
  101. your Windows 3.0 files.  The initDLL loading method looks for it there.
  102.  
  103.  
  104. Proceed:
  105. ~~~~~~~
  106. Probably the best way of proceeding is to import the WBTRV.ACT file,
  107. which was described above, into the Workspace of a fresh Actor image. 
  108. The first few lines of the ACT file use WBTRV.LOD to load the
  109. needed classes.  You should also make sure you have an existing Btrieve
  110. database file available (created using any earlier version of Btrieve)
  111. and know what its data buffer length is.  Replace <datBufSz> in the ACT
  112. file with that length number, although the correct value is not entirely
  113. necessary.  If a wrong data buffer length is used, Btrieve simply
  114. returns a #22 status code and goes ahead and gets what it can.  The
  115. <numbFlds> figure is not important for the operations I've used in the
  116. ACT file.  <numbFlds> can be replaced with a 0.  And finally, you'll
  117. need to know how to set the configuration string for the initBtrv
  118. method.  This string should look the same as the string used to
  119. intialize Btrieve when you are opening your database with your normal
  120. procedures.
  121.  
  122. That's it.  Good luck with it.  Please contact me if you have any
  123. problems or suggestions.
  124.  
  125. Phil...
  126.