home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_tools / vbit11 / readme.txt < prev    next >
Text File  |  1995-01-22  |  20KB  |  418 lines

  1. _____________________________________________________________________________
  2.  
  3. IDBTOOLS 1.1 FOR VISUAL BASIC                NORWEGIAN TEXT: SEE README_N.TXT
  4. _____________________________________________________________________________
  5.  
  6. > WHAT IS IDBTOOLS?                                                   ┌─────┐
  7.                                                                       │MICRO│
  8.   IdbTools is a library of useful and timesaving routines which       ├─────┤
  9.   makes life easier for any Visual Basic programmer.                  │ I   │
  10.                                                                       │  D  │
  11.   Basic contents are as follows:                                      │   B │
  12.                                                                       ├─────┤
  13.   + Simple, but very powerful routines for string-manipulation        │ADEPT│
  14.                                                                       └─────┘
  15.   + Extensively simplified reading/writing of INI-files compared
  16.     to API-calls
  17.  
  18.   + Routines for reading system-information, i.e. available
  19.     disk space, memory, screen resolution etc.
  20.  
  21.   + Dynamic one/two-dimensional tables (arrays) consisting of dynamic text-
  22.     strings enables you to manipulate significantly bigger amounts of data
  23.     than Visual Basic alone can handle. Smart sorting, seek, read files,
  24.     write to file, linking to spreadsheets etc. is also included.
  25.  
  26.   + Encryption algorithms (with no "back-door") enables you to easily
  27.     protect your data against unwanted intruders.
  28.  
  29.   + Elegant copy protection of software and applications. This software
  30.     (IDBTOOLS) is using the same copy protection itself, so try it out and
  31.     evaluate.
  32.  
  33.   IdbTools is a IDB MICRO ADEPT AS product. This package is intended for
  34.   Visual Basic, but the same software is also available for C++.
  35.  
  36.   Please see the enclosed files IDBTOOLS.WRI and IDBTABLE.WRI (standard
  37.   Windows 3.1 Write format - can also be read from MS Word) for a detailed
  38.   description of routines and functionality.
  39.  
  40.   This software is distributed as "shareware" (se below for details), and we
  41.   intend to ship regular updates in the near future. If this file is more
  42.   than a couple of months old (see file-date), it is likely that there is a
  43.   newer release in circulation, so call your favorite BBS's to get the
  44.   most recent version.
  45.  
  46.  
  47.   Any comments and/or suggestions are welcome, and can be sent/mailed to:
  48.  
  49.   Idb Micro Adept AS                                    idb@vestnett.no
  50.   Strandgt. 207                                         """""""""""""""
  51.   5004 BERGEN
  52.  
  53.  
  54.  
  55. _____________________________________________________________________________
  56.  
  57. NB: This file contains special characters based on MS DOS character set. 
  58.     If you use a  Windows  program like  Notepad  to read this,  special
  59.     characters will not occur correctly,  and the enclosed examples will
  60.     not be readable.  If that is the case, quit this file and access the
  61.     file   README.WIN instead which contains this text based on  Windows
  62.     character set.
  63. _____________________________________________________________________________
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. _____________________________________________________________________________
  72.  
  73. > TABLES
  74.  
  75.   A table is a matrix of text-strings, which can be compared to an invisible
  76.   spreadsheet in RAM. The tables can be dimensioned according to your needs,
  77.   and dynamic changes can be made at any time. You can read tables directly
  78.   from a number of file formats, and the tables are automatically
  79.   dimensioned according to the file-contents. The same applies for writing
  80.   tables to different file formats.
  81.  
  82.   Reading and writing data from/to tables, seek and sort are very fast
  83.   operations.
  84.  
  85.   The sorting routine for tables has some unique features. It is the only
  86.   sorting routine known that gives a logical sorting of text containing
  87.   numbers.
  88.  
  89.   Example:      Ordinary sorting                IDBTOOLS SmartSort
  90.  
  91.                 Number 1 of 100                 Number 1 of 100
  92.                 Number 10 of 100                Number 2 of 100
  93.                 Number 100 of 100               Number 10 of 100
  94.                 Number 2 of 100                 Number 20 of 50
  95.                 Number 20 of 100                Number 20 of 100
  96.                 Number 20 of 50                 Number 100 of 100
  97.  
  98.   Sorting of special characters is greatly improved compared to most
  99.   competing sort-routines. Characters like /E/É/e/é/è/ë/ê/ are treated as
  100.   variations on the same letter, i.e. the difference is only significant
  101.   for the sort-order when the remaining characters are identical.
  102.  
  103.   Example:
  104.                 Sequence 1
  105.                 Sequènce 2
  106.                 Sequence 3
  107.                 Sequènce 3
  108.                 Sequènce 4
  109.                 Sequencè 5
  110.                 Sequencé 6
  111.  
  112.   Between record 1 and 2 the difference between "e" and "è" has no
  113.   significance since the remaining characters are different. The same
  114.   applies for record 2 and 3. The only difference between record 3 and 4
  115.   is "e"/"è", and consequently the record containing "e" will be sorted in
  116.   front of the other, since "e" is defined before "è".
  117.  
  118.   You may say that this is plain trivia, but may change your mind when you
  119.   see how most other programs handles sorting of the same records:
  120.  
  121.                 Sequence 1
  122.                 Sequence 3
  123.                 Sequencé 6
  124.                 Sequencè 5
  125.                 Sequènce 2
  126.                 Sequènce 3
  127.                 Sequènce 4
  128.  
  129.   IdbTools contains several different seek-routines for finding data in a
  130.   table, i.e. exact match, wildcards and binary-search (data in a sorted
  131.   table)
  132. _____________________________________________________________________________
  133.  
  134. > STRING-HANDLING / INI-FILES
  135.  
  136.   Most Visual Basic programmers sooner or later faces the "problem" that
  137.   most program-utilities for returning strings, anticipates that the calling
  138.   program has allocated space for the returned string. To illustrate this
  139.   we will show you the difference between reading INI-files traditionally
  140.   (via API) and using IdbTools:
  141.  
  142.   ' Read name of starting program for Windows from SYSTEM.INI:
  143.  
  144.     Declare Function GetPrivateProfileString% Lib "Kernel" (ByVal pAppName$,
  145.                      ByVal pKeyName$, ByVal pDefault$,
  146.                      ByVal pReturnedString$, ByVal nSize%, ByVal pFileName$)
  147.  
  148.     txt$ = String$(80, " ") ' Reserve space for 80 chars
  149.     len% = GetPrivateProfileString("boot","shell","",txt$,80,"SYSTEM.INI")
  150.     StartProg$ = Left$(txt$, len%) ' Possible result: "progman.exe"
  151.  
  152.   ' Same as above using IdbTools (IDBTOOLS.BAS is included in the project):
  153.  
  154.     StartProg$ = IniFileGetString("SYSTEM.INI", "boot", "shell")
  155.  
  156.   I think we have made our point, and showed beyond reasonable doubt which
  157.   method is the easiest to PROGRAM, MAINTAIN and last but not least to
  158.   UNDERSTAND!
  159.  
  160.   IdbTools provide a number for powerful routines for string-manipulation
  161.   that Visual Basic "lacks": pick words from strings, swap part of strings,
  162.   formatting, translation between DOS and Windows character sets and much
  163.   more. See IDBTOOLS.WRI for a complete and detailed documentation.
  164.  
  165. _____________________________________________________________________________
  166.  
  167. > SYSTEM INFORMATION
  168.  
  169.   Routines that gives easy access to system-information: screen resolution,
  170.   number of colors, free disk-space, available RAM, disk(ette)-unit status
  171.   etc. Details on environment variables and directory information can be
  172.   read directly into tables.
  173.  
  174. _____________________________________________________________________________
  175.  
  176. > ENCRYPTION
  177.  
  178.   If you want to protect data against unwanted intruders, you can achieve
  179.   this by using the IdbTools encryption routines. These routines are not
  180.   based on any standard algorithm specified by "Big Brother", and has
  181.   therefore no "back door". There is no possibility what so ever to recover
  182.   an encrypted string without the correct key - not even for us who made
  183.   the program.
  184.  
  185.   The routines are very simple in use; you specify the text-string to be
  186.   coded together with the "secret key" and the result is a completely
  187.   unreadable string. When decoding the same string, you specify the
  188.   unreadable string and its key, and the original string is returned.
  189.   Using wrong keys will not unlock any doors.
  190.  
  191.   Example:
  192.  
  193.           TextIn$  = "Private information..."
  194.           Secret$  = "Sesam$ΣzaM"
  195.           Crypt$   = Encrypt (TextIn$, Secret$)
  196.           TextOut$ = Decrypt (Crypt$,  Secret$)         
  197.  
  198.   ' TextOut$ and TekstIn$ will be identical, and
  199.   ' Crypt$ will contain an unreadable string.
  200. _____________________________________________________________________________
  201.  
  202. > COPY PROTECTION
  203.  
  204.   The program library IDBTOOLS.DLL is copy protected. If you have no valid
  205.   license, you will be made aware of this by an annoying pop-up window
  206.   reminding you to contact IDB and purchase a copy. Most of the IdbTools
  207.   routines will for the time being function without the annoying reminder,
  208.   but when you use table-functions or the encryption routines, the testing
  209.   for a valid license is activated.
  210.  
  211.   The only way to get rid of the "license-alarm" is to purchase a license
  212.   code from IDB. The license-code consists of a 6-letter alphanumeric string
  213.   which is derived from the name of the licensee. The license-name and
  214.   corresponding code must be inserted into all programs using IdbTools:
  215.  
  216.      status% = LisenseIdbTools("User Name, Address", "CODE01")
  217.  
  218.   This code is inserted in Form Load in the applications startup form.
  219.  
  220.   All applications using IdbTools must have a license for the name holding
  221.   Copyright for the application. IDBTOOLS.INI will contain a list of all
  222.   programs using IDBTOOLS. If the application is using a licensed version
  223.   of IdbTools, the licensee name will appear as the copyright holder of the
  224.   application. This means that an application using a "borrowed" license
  225.   code will appear as copyrighted by the name connected to the violated
  226.   license. Somebody actively programming a call to LicenseIdbTools using
  227.   somebody else's name and code, can not claim to have acted in good faith.
  228.  
  229.   A similar copy protection scheme is available for all applications 
  230.   using IdbTools, provided a valid license:
  231.  
  232.   The call      code$ = LicenseGetCode("User Name","SECRET_KEY")
  233.   will return a code for the given user name. This call is supposed
  234.   to be used in a program only available for the distributor of
  235.   the application.
  236.  
  237.   The following statement is put into the application:
  238.                 status% = LicenseProgram(UserName$, Code$, "SECRET_KEY")
  239.  
  240.   Depending on the result, status%, your application can determine whether
  241.   the username/code is valid for this program, and take appropriate actions.
  242.   Different applications can have different keys ("SECRET_KEY_PROG2").
  243.  
  244.   When LicenseProgram has been called with a valid code, the user name will
  245.   be inserted in IDBTOOLS.INI connected to the name of your application in
  246.   the group [License].
  247. _____________________________________________________________________________
  248.  
  249. > SHAREWARE: RULES FOR USE AND DISTRIBUTION
  250.  
  251.   IdbTools is distributed as "shareware". This term must not be mixed up
  252.   with "Freeware" or "Public domain". "SHAREWARE" is a method for
  253.   distribution of software which is protected by COPYRIGHT like all other
  254.   commercial software.
  255.  
  256.   The "shareware" concept give potential users the opportunity to evaluate
  257.   the software before they decide whether they want to pay for the right
  258.   to use it.
  259.  
  260.   It is perfectly legal to use this software for testing in a trial period.
  261.   A reasonable test period is estimated to be 30 days. Using the software
  262.   beyond a reasonable trial period, or including it in a commercial 
  263.   program without a legal license, will be regarded as a violation of
  264.   our copyright.
  265.  
  266.   An important part of the "shareware" concept is that the user must have
  267.   a chance to test all parts of the software. If the software is only  
  268.   partly working, or deliberately causes erroneous results, it should not
  269.   be called "shareware", but "crippleware". Some "shareware" software
  270.   is also called "nagware" because of the annoying pop-ups constantly
  271.   reminding the user about the lack of license. IdbTools is using this
  272.   approach, but you can still test all parts of it.
  273.  
  274.  
  275.   IDBTOOLS can be distributed freely on the following conditions:
  276.  
  277.   - All files in this package must be included (see PACKING.LST).
  278.  
  279.   - The files must be unchanged.
  280.     Archive file name must include version number (VBIT11.ZIP -> ver 1.1).
  281.     The date and time of the files should not be changed.
  282.     Time must correspond to the version number.
  283.  
  284.   - No files can be added to the package, with one exception: The BBS
  285.     distributing this software may include a short text file with a 
  286.     short presentation of the BBS.
  287.  
  288.   - It is not allowed to charge any cost for the distribution of this
  289.     software, except for normal downloading fees (if any), without the
  290.     express permission from IDB MICRO ADEPT AS.
  291.  
  292.   We encourage you to give copies of this software to your friends and
  293.   colleagues, and to upload it to any BBS's that you use. For sample
  294.   descriptions suitable for BBS file listings, please see FILE_ID.DIZ
  295.   and DESC.SDI.
  296.  
  297. _____________________________________________________________________________
  298.  
  299. > COPYRIGHT / LIABILITY / CONDITIONS FOR USE
  300.  
  301.  
  302.   !    IDBTOOLS  Copyright (C) 1995  IDB MICRO ADEPT AS, BERGEN, NORWAY     !
  303.   !    ________________________________________________________________     !
  304.   !    Use this software  only  if you accept the following conditions:     !
  305.   !    """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""     !
  306.   !    THE SOFTWARE IDBTOOLS AND ACCOMPANYING DOCUMENTATION IS PROVIDED     !
  307.   !    AS IS WITHOUT WARRANTY OF ANY KIND. ALL USE IS AT YOUR OWN RISK.     !
  308.   !    IDB MICRO ADEPT AS CAN NOT BE MADE LIABLE FOR ANY DAMAGES CAUSED     !
  309.   !    BY USE OF THIS SOFTWARE AND DOCUMENTATION.                           !
  310.   !    OWNER OF A LEGAL LICENSE FOR IDBTOOLS  IS COMMITTED TO KEEP THIS     !
  311.   !    CODE  UNAVAILABLE FOR OTHERS.    DELIBERATE  DISTRIBUTION  OF  A     !
  312.   !    LICENSE  CODE  WILL  BE REGARDED AS  A  SEVERE  VIOLATION OF THE     !
  313.   !    LICENSE CONDITIONS AND A VIOLATION OF IDB'S COPYRIGHT,  AND WILL     !
  314.   !    BE PROSECUTED.                                                       !
  315.  
  316. _____________________________________________________________________________
  317.  
  318. > LICENSE-CODES / PRICE                               
  319.  
  320.   Contact IDB MICRO ADEPT AS to get a license code.       
  321.   Current prices are:
  322.  
  323.   In Norway:           NOK 425 incl. M.V.A.  (REG: NO865975392MVA)
  324.   All other countries: US $ 55
  325.  
  326.   A valid license code gives you the right to distribute IDBTOOLS.DLL
  327.   with your programs.
  328.  
  329.  
  330.   ------------------------------
  331.   * TIME LIMITED SPECIAL OFFER *
  332.   ------------------------------
  333.   If you pay for a IdbTools license before march 1st 1995, you will
  334.   also get the right to use and distribute IDBVTSS.DLL. This module
  335.   contains the necessary routines for connecting IdbTools to the
  336.   spreadsheet product Formula One from Visual Tools. This product is 
  337.   exceptionally suitable for presentation of IdbTools Tables, and also
  338.   give the possibility to import/export Excel (4.0) spreadsheets to
  339.   the Tables via Formula One.
  340.  
  341.   In future versions, IDBVTSS will be sold as a separate add-on tool.
  342.  
  343. _____________________________________________________________________________
  344.  
  345. > ORDERING INFORMATION / PAYMENT:
  346.  
  347.   Send to:                                              Idb Micro Adept AS
  348.                                                         Strandgaten 207
  349.                                                         N-5004 Bergen, Norway
  350.  
  351.   ___________________________________________________________________________
  352.   |                                                                         |
  353.   |         The following information must accompany the payment:           |
  354.   |         =====================================================           |
  355.   |                                                                         |
  356.   |     Name       _________________________________________________________|
  357.   |                                                                         |
  358.   |     Address    _________________________________________________________|
  359.   |                                                                         |
  360.   |     Postcode   _________________________________________________________|
  361.   |                                                                         |
  362.   |     City       _________________________________________________________|
  363.   |                                                                         |
  364.   |     Country    _________________________________________________________|
  365.   |                                                                         |
  366.   |     Date       ___________________________   Phone: ____________________|
  367.   |                                                                         |
  368.   |     Has paid   ___________ for IdbTools license (see PRICE above):      |
  369.   |          _                                                              |
  370.   |         [_]    Check / money order enclosed                             |
  371.   |         [_]    BankGiro: 9521.05.69325 (A/S Bergens Skillingsbank)      |
  372.   |         [_]    PostGiro: 0826.02.47787 (CCP du bénéficiaire             |
  373.   |                                         Norvège Service des             |
  374.   |                                         chèques postaux)                |
  375.   |                                       _                                 |
  376.   |     Want to receive the license code [_] via E-mail: ___________________|
  377.   |                                      [_] via post.                      |
  378.   |                                      [_] via Fax:    ___________________|
  379.   |     IdbTools version:      ________                                     |
  380.   |                                                                         |
  381.   |     Where did you find IdbTools? _______________________________________|
  382.   |_________________________________________________________________________|
  383.    
  384.   If you pay directly to the bank account or international Post services,
  385.   you may prefer to send the above information as E-mail via internet to:
  386.  
  387.   idb@vestnett.no
  388.  
  389.   We will send the code to you as soon as we have confirmed the payment. 
  390.  
  391. _____________________________________________________________________________
  392.  
  393. > DOCUMENTATION - LANGUAGES                           
  394.  
  395.   This text is available in the following languages:
  396.  
  397.         Norwegian       README_N.TXT    (Windows: README_N.WIN)
  398.         English         README.TXT      (Windows: README.WIN)
  399.  
  400.   The documentation (IDBTOOLS.WRI and IDBTABLE.WRI) is for the time being
  401.   only available in English.
  402.  
  403.   If your native language is not one of the above, and you wish to
  404.   contribute making this text and/or the documentation available in
  405.   your language, please contact us for discussing terms of cooperation.
  406. _____________________________________________________________________________
  407.  
  408. > FEEDBACK                                
  409.  
  410.   If you have comments, error reports, suggestions for improvements and
  411.   extensions, please write to:
  412.  
  413.   Idb Micro Adept AS                                    idb@vestnett.no
  414.   Strandgaten 207                                       ^^^^^^^^^^^^^^^
  415.   N-5004 Bergen, Norway
  416. _____________________________________________________________________________
  417. _______________________________END_OF_README_________________________________
  418.