COM automation with Notes 9 Social Edition

I have a legacy application coded in VB6 that uses Lotus Notes Automation Classes (c:\notes\notes32.tlb) to create a Notes session and automate the process of sending out emails. Everything worked fine until I upgraded to Notes 9, and now the automation appears to be broken. The notes32.tlb file hasn’t been updated, and shows a timestamp of 8/8/2002, so I’m assuming that is still the old library file for the previous version. When I try to execute this code:

Set oSession = CreateObject(“Lotus.NotesSession”)

I get this error:

429 - ActiveX component can’t create object.

Does Notes 9 still support COM automation, and if so, is there any documentation available to show how it should be set up?

Subject: Did you regsvr the DLL?

Something like:

regsvr32 c:\notes\nlsxbe.dll

A number of Releases ago, the installer stopped doing this automatically.

Subject: Can’t add nlsxbe.dll

I can’t add nlsxbe.dll in my application that uses Lotus Notes.

I’ve already running regsvr32 nlsxbe.dll. But when I want to add nlsxbe.dll in my application, I have this error : “Impossible to add a reference…”

Have you got any idea to solve my trouble ?

Thanks in advance.

Subject: That worked!

Thanks for confirming the syntax. I had been navigating to the C:\Notes folder and running regsvr32 nlsxbe.dll, which didn’t work. When I used the full path in the call to regsvr32, it worked and I am back up and running.

Subject: Can’t add nlsxbe.dll

I can’t add nlsxbe.dll in my application that uses Lotus Notes.

I’ve already running regsvr32 nlsxbe.dll. But when I want to add nlsxbe.dll in my application, I have this error : “Impossible to add a reference…”

Have you got any idea to solve my trouble ?

Thanks in advance.

Subject: COM automation (vb6) with Notes 9 Social Edition

I also got it in this case but when

Set NSesion = New NotesSession
NSesion.Initialize (Form1.Clave.Text)

with a different type of Error -2147217504 Notes error: No se ha podido abrir el archivo ID

Already un updating the regsvr32 c:\notes\nlsxbe.dll

Regarts,