Specifications

OLE reference
Gallagher & Robertson Glink: API reference manual 141
End Sub
Glink.Auto, a single instance interface
As Glink is not a Multi-Document Interface (MDI) in the same way as
applications which open spread-sheets, documents, the Glink.Auto object is a
single-instance interface. This means that only one Automation client can
connect to it at a given time.
When you create a Glink.Auto object, the system will connect you to the first
available copy of Glink. If there are no copies running, or they are all already in
use as automation servers, then the system will start up a new instance of Glink.
When you retrieve the Glink.Auto object, you can find out if it is a new instance
by testing the gl.Automation property.
Set gl = GetObject("", "Glink.Auto")
If Not gl Is Nothing Then
If gl.Automated = true Then
gl.LoadConfig("def.glinkconfig")
gl.Connect
End If
....
Set gl = Nothing
End If
Connecting to an running Glink session
As Glink is a single instance interface, you can not tell in advance which Glink you
will get connected to. To connect to a specific Glink, you need to enumerate the
Glinks until you find the Glink you require. See the section about enumerating
Glink sessions.
Starting up a new Glink
The system will only start up a new instance of Glink when all copies of the
program in memory are already in use as automation servers. If you need to start up
a new Glink instance, then you need to enumerate all current copies (making each
unavailable for further connections) until you get to the point where a new copy is
started. See the section about enumerating Glink sessions.