gen_tlbreg

Description

Generates the .tlb and .reg files that you need to run an ActiveX client.

This command can be run only on a Windows machine, and when the server to which jagtool connects is running in Windows.

Syntax

Local mode support: Yes.

Command line:

gen_tlbreg 
[ connect-args | local-args ]
-proxyserverloc pspath 
[-outputdir outdir] 
[-register true|false]
[-savemidl true|false] 
entity

Ant build file:

<jag_gen_tlbreg proxyserverloc=”pspath“ 
[outputdir=”outdir”] 
[register=”true|false”] 
[savemidl=”true|false”] 
entity

Option

Description

Default

Required

connect-args | local-args

Arguments to specify a connection to the server or to run in local mode. See “Local versus connected mode”.

-

Yes

proxyserverloc

The path to the InProcServer corresponding to the Generic ActiveX Proxy DLL (jagproxy.dll).

WARNING! Do not leave this field blank. If you do, an empty string is inserted into the InProcServer32 entry in the Windows Registry and the ActiveX proxy does not run.

-

Yes

outputdir

The output directory to store the generated .tlb and .reg files.

Root directory on the drive where EAServer is installed

No

register

If true, registers the ActiveX Proxy interfaces.

false

No

savemidl

If true, the generated Microsoft interface definition language is retained.

false

No

entity

Name of the entity for which .tlb and .reg files are generated, in this form:

EntityType:EntityName

where EntityType is either “Package” or “Module.”

-

Yes

Returns

Return value

Indicates

0

The command ran successfully; the result is true/success.

1

The command ran successfully; the result is false/failure.

2

The command did not run successfully; an exception was thrown.

See also

Chapter 20, “Creating ActiveX Clients,” in the EAServer Programmer’s Guide.