Notes会话与Lotus会话COM API问题 [英] Notes Sessions Vs Lotus Session COM API Issues
问题描述
我维护了一个相当大的应用程序,它与Lotus Notes进行了很多交谈。最近几个月,一些用户在连接到Lotus Notes会话时遇到问题,我使用以下代码获取会话
Set Session = CreateObject(Notes.NotesSession)
这个错误似乎只对一定数量的用户弹出。我创建了一个带有以下行的示例应用程序
Set Session = CreateObject(Lotus.NotesSession)
p>
并且上面的行工作原因。用户说安装备注有一些问题,但在重新安装后已纠正。为什么同一个对象有两个类名,为什么一个工作,另一个不工作。
任何yelp在这将赞赏:)
此文档在IBM网站上提到Notes.NotesSession是基于OLE的。
.2b,您将在操作系统注册表中看到一个名为Lotus.NotesSession的类,如下所示。这是Domino COM类的根。仍然存在Notes.NotesSession和Notes.NotesUIWorkspace这是OLE根
我不知道为什么OLE类失败COM类没有,但鉴于OLE现在已经二十年了,我会坚持使用Lotus.NotesSession:)
I maintain a fairly large application which does a lot of talking with Lotus Notes. Recently in the last couple of months, some users have been having problem connecting to the Lotus Notes Session, I use the following code to get the session
Set Session = CreateObject("Notes.NotesSession")
This error seems to be popping up only for a certain number of users. I created a sample app with the following line
Set Session = CreateObject("Lotus.NotesSession")
And the above line works for some reason. The user says there was some issue installing notes but has been rectified after a re-installation. Why are there two class names for the same object and why is one working an other one not working.
Any yelp on this would appreciated :)
This documentation on IBM's site mentions that Notes.NotesSession is OLE based.:
After installing release 5.0.2b, you will see in the operating system registry a class named Lotus.NotesSession, as shown below. This is the root of the Domino COM classes. Still present are Notes.NotesSession and Notes.NotesUIWorkspace which are the OLE roots
I don't know specifically why the OLE classes are failing where the COM classes do not, but given that OLE is two decades old now, I would stick with Lotus.NotesSession :)
这篇关于Notes会话与Lotus会话COM API问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!