* * * API - ERROR (VB6) - need help * * *

Hi all,

My application is running under Win200, LN 5.0.11 without any problems. Unfortunately under XP and LN 6.5.1 NOT! The LN 6.5.1 client itselfs works well.

My VB6 code fragement is as following:

Dim oNotesSession as Domino.NotesSession

Set oNotesSession = New Domino.NotesSession

Error (Is fired, when the “Set …” statement is called):

Runtime Error!

Program: C:\Program Files\Microsoft Visual Studio\VB98\VB6.exe

abnormal program termination

Does anybody know, why this error occur? How can I fix that problem?

Thank you very much in advance.

Rgds,

Kurt

Subject: * * * API - ERROR (VB6) - need help * * *

Make sure the Notes 6 COM objects are registered

by default with a 6.x install they are not.

You need to run:

regsvr32 nlsxbe.dll to register them.

Search this forum for nlsxbe.dll for more info,

Subject: RE: * * * API - ERROR (VB6) - need help * * *

Hi Carl,

I did that, but it wasn’t working. Today I installed release 6.5.3 and was surprised that the creatation of the session object including init works well. Unfortunately the program terminates when I try to get the database object (the same code works under 5.0.11).

Code:

Dim COMSess As Domino.NotesSession

Dim COMDB As Domino.NotesDatabase

Private Sub Class_Initialize()

On Error GoTo ErrHandler

’ Create new Notes session object

Set COMSess = New Domino.NotesSession

’ init session

COMSess.Initialize “ba178”

’ get database from ABAB → *** the program terminates, if this statement is called

Set COMDB = COMSess.GetDatabase(“ABAB/Server”, “hi.nsf”, False)

Thank you very much for your feedback in advance.

Rgds,

Kurt

Subject: * * * API - ERROR (VB6) - need help * * *

Try late binding?

Dim oNotesSession as Object

Set oNotesSession = CreateObject(“Domino.NotesSession”)