Link to home
Start Free TrialLog in
Avatar of nigelboyle
nigelboyle

asked on

Lotus Notes and C++ .NET

I'm wanting to connect through to Lotus Notes using the Interop Dlls that are installed with Lotus Notes. Is it possible? I can do it in VB .NET code perfectly fine using NotesSession and Database (opening with replica ID). In C++ .NET I can create a NotesSession and connect to Lotus Notes using...

Domino::NotesSession ^ hello = gcnew Domino::NotesSession;
hello->Initialize("");

but whenever I use the NotesDatabase I get an error...

"Retrieving the COM class factory for component with CLSID {29131527-2EED-1069-BF5D-00DD011186B7} failed due to the following error: 80040154."

I get this as an Exception when I do a try catch with this code:

Domino::NotesDatabase ^ goodbye = gcnew Domino::NotesDatabase;



Is it possible to get this to work? I would rather not have to program this part in Visual Basic. Thanks.


This is also posted in Lotus Notes / Domino section.
Avatar of AlexFM
AlexFM

Show VB .NET code and we will try to translate it to C++/CLI.
ASKER CERTIFIED SOLUTION
Avatar of lakshman_ce
lakshman_ce

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nigelboyle

ASKER

Well, all the VB code is the declaration:

Dim goodbye As Domino.NotesDatabase

Which I just noticed doesn't have the 'New'. After testing I've found out this was the problem. My Bad :(
Thanks lakshman, I posted that before refreshing. I'll give you the points. Thanks.