// CPPDemo.cpp : Defines the entry point for the console application. // //#include "stdafx.h" #include "NotesCOM.h" int main(int argc, char* argv[]) { SESSION_HANDLE hSession = NULL; DATABASE_HANDLE hDb = NULL; DOCUMENT_HANDLE hDoc = NULL; DWORD noteid = 0x1182; NotesCOMInit(); hSession = NotesCOMGetSession(); hDb = NotesCOMGetDatabase(hSession, (char *)L"tempnsf.nsf"); hDoc = NotesCOMGetDocument(hDb, noteid); NotesCOMExportDXL(hSession, hDoc, noteid, (char *)L"c:\\3slug", OUTGOING); NotesCOMFreeDocument(hDoc); NotesCOMFreeDatabase(hDb); NotesCOMFreeSession(hSession); NotesCOMTerm(); return 0; }