Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Quick Libraries
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Quick Libraries
■ When you create a set of procedures for use in more than one project,
make a Quick library. Quick libraries are convenient and save disk space.
■ Existing Quick libraries are loaded when you invoke Visual Basic with the
/L command-line option. See: ◄VBDOS Command-Line Options►
■ All Make Library options are written to VBDOS.INI when you exit Visual
Basic and reloaded when Visual Basic is started.
■ The source modules for a Quick library can be:
• Single-module project files
• Multiple-module project files
• Existing Quick library files
■ To create a Quick library from a single-module project:
• Load each file with Add File from the File menu
• Go to step 1 below
■ To create a Quick library from a multiple-module project:
• Load the project into memory with Open Project from the File menu
• Use Remove File from the File menu to eliminate any modules you don't
want included
• Go to step 1 below
■ To add modules to an existing Quick library:
• Load the Quick library by invoking the Visual Basic programming
environment with /L
• Choose Add File from the File menu to add additional modules
• Go to step 1 below
■ To create or update a Quick library:
1. Choose Make Library from the Run menu
2. Type a new or existing library name in the Library Name text box
The default extension is .QLB. Select the Run-Time Error Checking
option if you want to generate debugging code for run-time error
checking (same as using /D with the Visual Basic Compiler).
3. Press Enter or choose Make Library to create or update
This option will return you to the programming environment. To exit
the environment after the operation, choose Make Library and Exit.
■ To add routines to an existing Quick library from the command line:
• You must rebuild the Quick library with all the desired routines,
including the new one(s).
• All files built into the Quick library (.QLB file) must first be
compiled.
■ The following example compiles the NEW.BAS module, then rebuilds a Quick
library to include the new module and all of the routines it contains:
BC New.Bas /O;
LINK /Q New.Obj Old.Lib, New.Qlb,,VBDOSQLB.LIB;
LIB new.lib + new.obj + old.lib
See: ◄BC Command-Line Options► ◄LIB Command-Line Options►
◄LINK Command-Line Options►