Get error description from Lotus Notes C API


/ Published in: C++
Save to your folder(s)

Get error description from Lotus Notes C API


Copy this code and paste it in your HTML
  1. STATUS error;
  2. char szNotesError[MAX_NOTES_ERROR];
  3.  
  4. if (error = NSFDbOpen(szName))
  5. {
  6. OSLoadString(NULLHANDLE, ERR(error), szNotesError, MAX_NOTES_ERROR);
  7.  
  8. printf("Unable to open database: %s.\n", szNotesError);
  9.  
  10. return;
  11. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.