Chapter 20 Creating ActiveX Clients
You can deploy the ActiveX client on any number of machines. To install the ActiveX client on a client machine:
JaguarADO.tlb is obsolete and has been replaced by JaguarORB.tlb.
Connection
Host
property, you must define (in the System
Properties from the Control Panel) a user environment variable for
each Jaguar server that the ActiveX client will invoke components
on. By default, the client installer creates an environment variable
JS_JAGUAR and sets its value to localhost:9000
.
The syntax for environment variable is:JS_JaguarServerName
machine_name:iiop_port#
JS_JAGUAR
jagreg -d jagproxy_dir [-t tlb_dir] [-o output] [-nr] [-f registry_file]
or
jagreg -t tlb_dir [-d jagproxy_dir] [-o output] [-nr] [-f registry_file]
where:
jagproxy_dir is the directory in which the APAS DLL resides. By default, the APAS installer places jagproxy.dll in the APAS dll subdirectory. Specify this parameter if jagproxy.dll is in a location different from when you generated the registry file. If you are not sure what location is stored in a registry file, specify the current location of jagproxy.dll when you run jagreg.
tlb_dir is the directory where the type library files reside.
output is an optional path to the directory in which updated registry file(s) are written. If you don't specify an output directory, the new registry file replaces the previous file; the previous file is saved with a .KEEP extension.
-nr is the option that prevents the new registry files from being registered. Use this option to update the .reg files without immediately applying them to the NT Registry.
registry_file is the name of the registry file that you want to change. If you do not specify a filename, all files in the current directory are processed.
The following example updates all .reg files in the current directory, changing the type library location to d:\jag_axp and the APAS DLL location to d:\jag_axp\dll. .reg files in the current directory are updated and previous versions are saved with a .KEEP extension:
jagreg -t d:\jag_axp -d d:\jag_axp\dll
If jagreg does not run, make sure the PATH environment variable contains the location of the Windows NT regedit.exe tool.
jagreg creates a new registry file from the existing registry file and:
InProcServer32
entry
under the CLSID
key with
the path to the APAS directory.
In the registry file, the InProcServer
entry
under the CLSID
key contains
the absolute path to the jagproxy.dll. The DIR
entry
under the TypeLib
key contains
the absolute path to the type libraries directory.
If you move the APAS or type libraries, you must run jagreg again with the new settings.
Copyright © 2000 Sybase, Inc. All rights reserved. |