[ Home ] [ Features ] [ Products ] [ FAQ's ] [ Screens ] [ Support ] [ Downloads ] [ About ] [ Discussion ]


the software that grows with you

 

V32Init()

Initializes the variables to be used by VouchServer.

Syntax

V32Init( < cWndTitle >, [ cServerPath ], [ cConnectPath ], [ cLibraryDll ], [ lProtoServer ], [ cLinker ], [ lXpGui ] )

Arguments

< cWndTitle > is the text which will appear in the title bar of the window executing the application. It is case insensitive. Thus V32Demo or V32DEMO has the same meaning. Typically the name of the executable is placed in the title bar of a Windows Dos Box. This parameter is required because all the windows opened by the VouchServer will attempt to find this window and make it its parent window.

[ cServerPath ] is the string containing the complete path where VouchSrv.exe is placed. Default is current directory returnd by DiskName()+'\'+CurDir(). If the VouchSrv.exe is not found at cServerPath, server will fail to intialize and return value will be FALSE.

[ cConnectPath ] is the string containing the complete path to communicate with the VouchSrv.exe. Default is current directory returnd by DiskName()+'\'+curDir(). At initialization level the existance of this path is not verified, only at runtime all communications with the Server are done via this directory. Thus it is very important that communication path is properly set.

[ cLibraryDll ] is a fully qualified file name with path pointing towards user created .dll containing  resources, such as, dialogs, bitmaps, icons, etc., created through any resource compiler. Thus the resources contained in such dll will be made available for execution apart from resources contained in VouchSrv.exe. Default is empty string.

[ lProtoServer ] logical to point whether VouchSrv.exe is being run in Server or Absolute mode. Server mode requires that VouchSrv.exe is already started prior to running the application. At close VouchSrv.exe is not closed automatically, but the user has to close it manually. VouchSrv.exe displays no icon in the system tray. For the current version it is recommended that Vouch32 must not be used in Server mode. It is only for the future version when the Server protocol becomes perfect. For XBase++ users server protocol is not supported at all, only absolute protocol is supported. It is because of the multithreading capabilities of XBase++. [x]Harbour users can can follow the directives as per Clippers.

[ cLinker ] a character string to identity which linker has been used by the Clipper application. Default is 'BLINKER'. XBase++ users need not to specify it. If cLinker <> BLINKER, SwpRunCmd() is replaced by RUN command. It is of imporatnce who are still linking with Rtlink or Exospace.

[ lXpGui ] logical to tell Vouch32 that xBase++ application is a pure console application only. By default Vouch32 assumes it to be a GUI. if it is set to FLASE then window handle is not determined by Vouch32 for functions which require it..

Returns

TRUE if VouchServer is initialized successfully otherwise FALSE.

Description

V32Init() is to be called at the startup routine of the application. It sets the different parameters used by Vouch32.lib and VouchServer. If any of the required parameters are not set properly, the server will not work. 

Usage

function main()
local lInit

   lInit := V32Init( 'V32Demo', 'C:\Vouch32', 'C:\Vouch32', '', .f. )
   if lInit

      // Program Code

   endif

return nil

Tips

 

[ Home ][ Features ] [ Products ][ About Us ][ FAQ's ][ Screen Shots ][ Downloads ][ Support ][ Discussion ]
.

Vouch is a Trademark of Pritpal Bedi
All other Trade Marks are the property of their respective owners.
Copyright 1993-2011 Pritpal Bedi. All rights reserved.
Hit Counter  
You are Visitor # since 14 May 2002