How to Extract .OBJ Routines from .LIB Files Using LIB.EXE

Article translations Article translations
Article ID: 31339 - View products that this article applies to.
This article was previously published under Q31339
Expand all | Collapse all

SUMMARY

The following steps will guide you when trying to extract .OBJ routines from QB.LIB, using the library manager LIB.EXE. QB.LIB is provided on the QuickBasic release disk.

MORE INFORMATION

  1. Get a cross-reference listing file of QB.LIB to identify the name of the routine to be extracted. You can do this by using the library manager LIB.EXE as follows:
       LIB QB.LIB,listfile;
    						
    If "CON" is used as the name of the list file, then the listing file will appear on the screen. The listing for QB.LIB looks like the following:
    
       ABSOLUTE..........absolute          INT86OLD..........int86old
       INT86XOLD.........int86old          INTERRUPT.........intrpt
       INTERRUPTX........intrpt
    
       absolute          Offset: 00000010H  Code and data size: cH
         ABSOLUTE
    
       intrpt            Offset: 000000e0H  Code and data size: 107H
         INTERRUPT         INTERRUPTX
    
       int86old          Offset: 000002a0H  Code and data size: 11eH
         INT86OLD          INT86XOLD
         ABSOLUTE
    
       intrpt            Offset: 000000e0H  Code and data size: 107H
         INTERRUPT         INTERRUPTX
    
       int86old          Offset: 000002a0H  Code and data size: 11eH
         INT86OLD          INT86XOLD
  2. To extract one of the .OBJ routines, use the library manager command "*module-name", where module-name is the name of the .OBJ routine inside the library. The following is an example:
       LIB QB.LIB *intrpt;
    						
    Once executed, a copy of intrpt will be placed in the working directory with the same name and .OBJ extension. Remember, the routines are listed in lowercase.
For additional Library Manager command symbols refer to Page 231 of the "Microsoft QuickBasic: Learning to Use" manual.

The Library Manager (LIB.EXE) is provided with the QuickBasic Compiler Versions 4.00 and later; however, it is not provided with QuickBasic Versions 3.00 and earlier versions. LIB.EXE is also provided with the Microsoft Macro Assembler.

Properties

Article ID: 31339 - Last Review: November 21, 2006 - Revision: 1.2
APPLIES TO
  • Microsoft QuickBasic 4.0
  • Microsoft QuickBASIC 4.0b
  • Microsoft QuickBasic 4.5 for MS-DOS
  • Microsoft BASIC Compiler 6.0
  • Microsoft BASIC Compiler 6.0b
  • Microsoft BASIC Professional Development System 7.0
Keywords: 
KB31339
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com