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-0 0DD011186B 7} 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.
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-0
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.
Show VB .NET code and we will try to translate it to C++/CLI.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 :(
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 :(
ASKER
Thanks lakshman, I posted that before refreshing. I'll give you the points. Thanks.