Has anybody got the C API function MailAddMessageBodyComposite working with larger HTML?

I have created a C API function trying to use the MailAddMessageBodyComposite function in the Notes C API , based on the ideas shown here: http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/507454d55e2216c180256c13002ab6ea?OpenDocument.

The documentation for the MailAddMessageBodyComposite-function states; “… This function creates multiple items of the same name and therefore is not limited to 64KB of input.”.

However, I can’t seem to get this to work without getting the error 315 meaning “Memory Allocation Exceeded 65,000 bytes”. With small (below 64 kB) html files, the MailAddMessageBodyComposite works without any problems.

The ImportHtmlTextFile-function in the NIHTML.DLL works without any problem with large HTML files and generate the binary CD-record file which MailAddMessageBodyComposite needs.

Has anybody got this function working?

Subject: [SOLVED] - I don’t use this function anymore, but the MIMEStreamItemize instead

I found another way, and just mention my solution here in case anybody else stumble on the MailAddMessageBodyComposite problem I had.

You find the technique using the MIMEStreamItemize in my blog at this URL: Proud Programmers Blog :: How I got around the Notes C API problem with MailAddMessageBodyComposite creating error 315 on larger HTML files http://www.proudprogrammer.no/web/ppblog.nsf/d6plinks/RIVH-9RXLUR