Solved

Lotus Notes and C++ .NET

Posted on 2006-07-10
4
635 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 250 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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