Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Lotus Notes and C++ .NET

Posted on 2006-07-10
4
Medium Priority
?
656 Views
Last Modified: 2013-11-25
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.
0
Comment
Question by:nigelboyle
  • 2
4 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 17075319
Show VB .NET code and we will try to translate it to C++/CLI.
0
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 1000 total points
ID: 17076180
0
 

Author Comment

by:nigelboyle
ID: 17076232
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 :(
0
 

Author Comment

by:nigelboyle
ID: 17076247
Thanks lakshman, I posted that before refreshing. I'll give you the points. Thanks.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question