//*****SOME STEPS ARE HERE*******************
BYTE *rt_field; /* allocated rich-text field */
DWORD rt_size;
//--------------SOME STEPS ARE HERE---------------------------
error = NSFItemAppend( hMemo,ITEM_SIGN | ITEM_SEAL,
"Body", strlen("Body"),TYPE_COMPOSITE,
(BYTE *)rt_field; rt_size);
char errorBuf[LNERROR_MESSAGE_LENGTH];
LNGetErrorMessage(error, errorBuf);
error = NSFNoteUpdate(hMemo, 0);
LNGetErrorMessage(error, errorBuf);
free( rt_field );
|