Question : Notes API Functions Hangs

Hi All
I am using the Notes Lotus C++ API 3.0 on Windows 2000. But After Some calls ,Notes  API Hangs and Does not Return.
I have Initialized Notes via NotesInit() and Terminate the API after all API Calls.
Can Any One Suggest what would be the cause of Problem?

The Sequence of Program is as follows.


NotesInitExtended(NULL,NULL);

if(!(ret = NSFDbOpen("C:\\TestMail.nsf", &hdb)))

error = NSFItemAppend(....);
error = NSFNoteUpdateExtended(hMemo, 0 );

NSFDbClose(hdb);

NotesTerm();

Thanks

Answer : Notes API Functions Hangs

>> can't i use c function available in the c++ api ?
Yes, apparently you can, but you have to be VERY careful when mixing the two. I'd suggest you work with the C API alone, and start with one of the samples that comes closest to your requirements.

About C API compatibility:
http://www-12.lotus.com/ldd/doc/tools/cplus/3.0/lncpp30.nsf/ed212f3421ad9aa78525676a0064acdb/b839b021d9ff202585256e8200532ece?OpenDocument

Here's just an interesting link about the two APIs:
http://www.experts-exchange.com/Q_20809433.html

Random Solutions  
 
programming4us programming4us