Specifications
COM+ reference
Gallagher & Robertson Glink: API reference manual 9
in your visual development tool will normally allow the tool to display the
GlinkApi methods, properties and events as you program. It also allows syntax
checking at compile time. How you include the TLB definitions in your program
is tool-dependent.
Using GlinkApi with MS Visual Basic
VB needs to load GlinkApi VTable Type Library (TLB) definition to be able to
display the GlinkApi methods, properties and events as you program.
Including the GlinkApi definition is done via the Project/References... menu,
which displays a list of references that are available. GlinkApi's type library
reference is called "Glink Professional, COM+ and Automation Library" and is
located in the GL.EXE file and "GlinkApi, COM+ Library" located in the
GLINKAPI.EXE file. Once one of them has been included, you should see that
the "Glink" object is added to the list of selectable objects when you try to define
a variable, for example type:
Dim glapi as
and the list appears. Once you have selected "Glink", type a dot and a list of
interfaces will be displayed:
Dim glapi as Glink.
Select "GlinkApi".
Dim glapi as Glink.GlinkApi
If you want the Glink.GlinkApi object created automatically as soon as it's used,
then use:
Dim glapi as new Glink.GlinkApi
To create a thin-client version of the object, then use:
Dim glapi as new GlinkApi.GlinkApi
The below set of examples will use Glink.GlinkApi rather than
GlinkApi.GlinkApi as the Glink object, but in most cases they are
completely interchangeable.