Solved

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

Posted on 2006-07-10
5
1,073 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now