Solved

Creating Notes objects in Visual C++ .NET 2005 - Domino.NotesDatabase

Posted on 2006-07-10
5
1,082 Views
Last Modified: 2013-12-18
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;

This also happens with other Notes Objects such as NotesDBDirectory.

Thanks
0
Comment
Question by:nigelboyle
  • 2
5 Comments
 
LVL 15

Expert Comment

by:mshogren
ID: 17075828
You say that it works fine in VB when you open the NotesDatabase by replica id.  So your declaration of the NotesDatabase object works there but not in C++?
0
 

Author Comment

by:nigelboyle
ID: 17076116
Yeah, the declaration is fine in VB and not in C++.
0
 

Author Comment

by:nigelboyle
ID: 17076276
Oops, I just discovered the problem. Turns out I don't need the New instance. Am I bad, sorry.
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 17118333
Closed, 500 points refunded.
Netminder
Site Admin
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why won't this building block macro run? 6 287
External emails not coming through 3 105
Inconsistent date field in Lotus Notes 6 93
Counting documents in a Domino View 3 80
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 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