


VEE Utility To Prevent More Than One Instance Of VEE Running

    v1.0 / 06 jun 97 / gvg

* In response to a customer need to ensure that only one copy of VEE be run
at a time, one of our lab engineers wrote a DLL to allow a VEE program to
determine how many other copies of VEE were running.

This archive contains the following files:

   readme.txt     This file.
   veeutil.dll    VEE utility DLL.
   veeutil.vee    Example program.
   veeutil.h      VEE definition file.

   veeutil.c      Source code.
   Makefile       Makefile for building DLL.

All the veeutil DLL does is count the number of "main" windows of a certain
class; you pass it the string "HPVEE" and it will count the number of
windows with the name HPVEE.  For example:

                   +------------------------------------------+
                   |             Import Library               |
                   +------------------------------------------+
                   | Library Type    [    Compiled Functon  ] |
                   | Library Name    [        MyLib         ] |
                   | File Name       [     veeutil.dll      ] |
                   | Definition File [      veeutil.h       ] |
                   +--------------------+---------------------+
                                        |
               +------------------------+------------------------+
               |                   Call Function                 |
   +-------+   +-----------+----------------------------+--------+   +---+
   | HPVEE +-->| className |      Function Name         | Retval +-->| 1 |
   +-------+   |           | [myLib.numWindowInstances] |        |   +---+
               +-----------+------------+---------------+--------+
                                        |
                         +--------------+-------------+
                         |       Delete Library       |
                         +----------------------------+
                         | Library Name  [   myLib  ] |
                         +----------------------------+ 

A program can read the number of window instances and then die if it is more
than 1.

[<>] 
