SAMPLE: Use ZAP.EXE to Find Duplicate DLLs and VBXs in VB 3.0

ID: Q120074


The information in this article applies to:


SUMMARY

It is not uncommon for Windows programs to ship with libraries of routines known as dynamic link libraries (DLLs). As more and more applications ship these types of files, duplicates of files tend to accumulate.

The ZAP.EXE sample program is useful for finding duplicated DLLs and VBXs in a system, which could potentially cause problems. It can search the same places searched by Windows when a VBX or DLL is loaded. The sample code demonstrates several API functions, both in the interface and in the primary algorithms.


MORE INFORMATION

Visual Basic support engineers regularly encounter problems caused by users with more than one copy of a particular DLL or VBX. The ZAP.EXE utility makes what used to be a tedious and time-consuming problem a great deal easier and quicker to solve. The main features of ZAP.EXE are as follows:

The included source code is fully commented. The special features of the code are as follows:
The following file is available for download from the Microsoft Software Library:

~ Zap10.exe

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 : How to Obtain Microsoft Support Files from Online Services


After downloading Zap10.exe, run it to extract the files it contains. They are as follows:

Filename  Extension  Description
--------  ---------  ---------------------------------------------
ZAP       EXE        The application itself
ZAP       MAK        The project file
MAIN      FRM        The main form
MAIN      FRX        Binary file associated with MAIN.FRM
ABOUT     FRM        The about box
WAIT      FRM        Form displayed during processing
COPYDEST  FRM        Form for selecting copy/move destination
ADT       BAS        Code module containing the main data structure
                     and the procedure to manipulate it
GLOBAL    BAS        Code module containing global variables, API
                     declarations, and type definitions.
USE       TXT        Instruction on how to use this tool
KB        TXT        This document 

Additional query words: 2.00 3.00 drag-and-drop softlib kbDSupport


Keywords          : kbenv 
Version           : 2.00 3.00
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: June 24, 1999