Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Lotus Notes and C++ .NET

Posted on 2006-07-10
4
Medium Priority
?
650 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

722 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