It is recommended to use what is known as 'Late Binding' to reference the
TOKOPEN_VIEW, this is where your program creates the object reference by name
using the Create_Object
function:-
Dim api As Object
Set api = CreateObject("TOKOPEN.TOKOPEN_VIEW")
This will ensure your API application will work with all versions of TokOpen.
The drawback of this method is that whilst developing the editor will not pre-fill the various properties / methods / paramters of the TokOpen objects as you type. It is quicker to develop if this feature is used, which is known as 'Early Binding'. To use early binding you must add a reference in your project to TOKOPEN. Select References from the VB Project menu, and in the references window tick the TokOpen object (as below).

Now in your program you can reference the object name explicitly :-
Dim api As TOKOPEN_VIEW
Set api = New TOKOPEN_VIEW
The only drawback of doing this is when TokOpen is updated to a new version your application may no longer work, and will need re-compiling with the new TokOpen.
We recommend making use of both methods, use Early Binding whilst developing and then change to Late Binding when your program is working. For example :-
'uncomment next 2 lines for runtime
'Dim api As Object
'Set api =
CreateObject("TOKOPEN.TOKOPEN_VIEW")
'uncomment next 2 lines for development mode
Dim api As TOKOPEN_VIEW Set api = New
TOKOPEN_VIEW
You will also need to include some pre-defined constants which are included in the TOKOPENAPI.BAS file.