Cadcorp SIS API Methods

SetupLink

Description

Starts the conversation with SIS. This should be called only once per application program, typically in the Load event of the main form.

Syntax

Visual Basic
Public Function SetupLink( _
   ByVal hWndForm As Integer _
) As Integer

Description

hWndForm
The form containing the command buttons.

Return Type

The window handle (hWnd) of the SIS application. This may be stored and used by the Windows API method SetForegroundWindow.

Non-zero - link succeeded
0        - link failed

Remarks

In SIS the glcore32.dll is replaced by the Cadcorp.SIS.GisLink.dll. The dll is available with SIS in the install directory and must be copied into either the Systems32 or the SysWOW64 directory (dependent on the Windows OS version).

In SIS GisLinks will have restricted access to methods and properties (e.g. variant type properties cannot be used).

Other applications can only access the Map Window Control and its context menu via GisLink. Access to the Ribbon Control or other Control Bars is not possible.

Available: MD ME MM

Groups:

Example

Private Sub fclsStartup_Load(ByVal sender As System.Object, ByVal e As _
  System.EventArgs) Handles MyBase.Load
SisHwnd = GisSetupLink(Me.Handle)
If SisHwnd = 0 Then
  MsgBox("Error connecting to SIS application", MsgBoxStyle.Exclamation,"GisLink")
End

End If
End Sub


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).