Embed_attachment

I am trying to add an Attachment to a mail. Attachment contains file with c++ code. I can’t see the icons in lotus form. Icons are shown when the document is closed and reopened.

I’m usnig code as follows:

…

lotus::NOTESEMBEDDEDOBJECTPtr pEmbObject = pRTItem->EMBEDOBJECT(EMBED_ATTACHMENT, TEXT(“”), pFilename);

…

Does anybody have an idea?

Thx

Marcin