What BodyFormat is the message in? Have you tried supplying a
missing/default argument for the Position argument (not sure how that would
be done using C++).
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Ashish" wrote in message
...
I remove the code to set subject. But still embeded image is not visible
when open mail. Now i'm sure it happens due to adding an attachment. If i
dont add attachment then embeded image is visible. Attachment is a text
file. I use following code to add attachment
variant_t vpath(attachfile_path.c_str());
variant_t vposition( 1);
variant_t vdisplay(attachfilename);
variant_t filetype((long)1);
((Outlook::_MailItemPtr)MailItemptr)-Attachments-Add(vpath,filetype,vposition,vdisplay);