Hello Domino Developers,
Does anyone have small sample on how to use the MIMEConvertMimePart() function? I have code written in C++ for opening a notes database, opening a specific document, etc and would like to use this function to see how it works. There are some functions similar in the reference guide but not exactly this one. I have something similar to this:
char fieldname[] = "Body";
char * ptrfieldname = fieldname;
if(error=MIMEConvertMIMEPart(note_handle, ptrfieldname, (WORD) strlen(ptrfieldname)))
{
OSLoadString(NULLHANDLE, ERR(error), szNotesError, MAX_NOTES_ERROR);
printf("\nError: %s.\n", szNotesError);
NSFNoteClose(note_handle);
NSFDbClose(hDB);
NotesTerm();
return 1;
}
I know the note has a field called Body. But when I run the code szNotesError says "Note item not found".
Thank you