AnsweredAssumed Answered

VRf_Running_1_VEE

Question asked by VRFuser on Jun 6, 1997
Latest reply on Oct 9, 2013 by Eric_A
send q VRf_Running_1_VEE vrf

from: Greg Goebel / HP-MXD
      gvg@lvld.hp.com / 970-679-3030 / FAX 970-679-5971
to:   VRf
date: Friday, 06 June 1997 1721 MDT

Hi All:

One of the lab guys figured out how to only run one instance of VEE.  See
below for details ... I put the materials on the website under

  -> PCTM Support -> Drivers, Binaries, & Etc. -> VEEWin

[%%] regards -- gvg

--------------------------------- cut here ----------------------------------



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.

[<>]

Outcomes