I am getting started with the Lotus Notes C++ API. I am trying to get a document based on UNID. I know a specific UNID, but I do not know how to write it to a UNIVERSALNOTEID
.
I am using Lotus Notes 8.5.2, C++ API 8.0.2, Windows 7 64-bit, Visual Studio 2008, C++ (managed).
I am able to open a database.
....
//Get and open a database.
LNDatabase SrcDb;
Session.GetDatabase( c, &SrcDb, chrServer );
SrcDb.Open();
Then I try to get a document.
LNDocument ld;
const UNIVERSALNOTEID u = "00000000000000000000000000000000";
SrcDb.GetDocument(&u, &ld);
On compile, I receive the error
error C2440: 'initializing' : cannot convert from 'const char [33]' to 'const
UNIVERSALNOTEID'
Here is where I need to learn the correct way to pass u
to GetDocument
.