Solved

Lotus Notes and C++ .NET

Posted on 2006-07-10
4
625 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
Comment Utility
Show VB .NET code and we will try to translate it to C++/CLI.
0
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 250 total points
Comment Utility
0
 

Author Comment

by:nigelboyle
Comment Utility
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
Comment Utility
Thanks lakshman, I posted that before refreshing. I'll give you the points. Thanks.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

11 Experts available now in Live!

Get 1:1 Help Now