notes c api
来源:互联网 发布:linux查看root密码 编辑:程序博客网 时间:2024/05/29 04:45
这是代码:
环境:bookmark.ntf 已经放在了C:/Program Files/lotus/notes/data目录下.
初始化函数报错:unhandled exception in NLSCCSTR.DLL 0xc0000005
#include <iostream.h>
#include <lncppapi.h>
#define ERR_BUF_SIZE 512
int main(int argc,char* argv[])
{
const char * DbFilename="bookmark.ntf";
const char * DbServer;
LNNotesSession Session;
LNDatabase Db;
LNString DbTitle;
/*
// Check the command line.
if (argc < 2 || argc > 3)
{
cout << "/nUsage:/n/t" << argv[0] << " <filename> [<server>] /n" << endl;
return (1);
}
// Get info from command line.
DbFilename = argv[1];
if (argc == 3)
DbServer = argv[2];
*/
// Make the error handler throw all errors encountered during execution.
LNSetThrowAllErrors(TRUE);
try
{
// Initialize the C++ API
Session.Init();
// Get the specified database.
Session.GetDatabase(DbFilename, &Db);
// Open sesame.
Db.Open();
// Get the database's title.
DbTitle = Db.GetTitle();
// Display it.
cout << "The database title is: " << DbTitle << endl;
}
// Error handler. If an error occurred, get the text of
// the error message and display it.
catch (LNSTATUS Lnerror)
{
char ErrorBuf[ERR_BUF_SIZE];
LNGetErrorMessage(Lnerror, ErrorBuf, ERR_BUF_SIZE);
cout << "Error: " << ErrorBuf << endl;
}
// Close sesame.
Db.Close();
// Terminate the API.
Session.Term();
// Ciao, baby!
return (0);
}
- notes c api
- Lotus Notes C API 编程
- Notes中有关C++API的注意事项
- Lotus Notes/Domino 的 C API 编程
- Lotus Notes/Domino 的 C API 编程
- Lotus Notes/Domino 的 C API 编程
- Lotus Notes/Domino 的 C API 编程
- Lotus Notes/Domino 的C API编程
- [Lotus] lotus notes C API toolkit编程实践
- Lotus Notes/Domino C API 内存管理机制介绍
- 用C API在Notes中实现进度条
- Notes C++ API 框架
- Java API Study Notes
- Java Reflection API Notes
- OM API Related Notes
- 如何使用 Lotus Notes C API 接口得到 DDM 的事件信息
- Hibernate核心API(Notes)
- Some C Learning Notes
- queue.h usage
- WCF服务注意问题之-回调
- Debian下VIM的安装和配置
- 使用EUnit进行单元测试
- 手动更新 Android SDK
- notes c api
- 你
- php禁止浏览器使用缓存页面
- 如何使用 Lotus Notes C API 接口得到 DDM 的事件信息
- 正则表达式之道
- HttpClient 基本功能的使用
- 人民币存款利率表2010-10-20
- C#双向链表
- 中国软件业的现状浅析