K
Ken Slovak - [MVP - Outlook]
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++).
"Ashish" <akohli_2004@hotmail.com> wrote in message
news:enarA%23xnJHA.3572@TK2MSFTNGP05.phx.gbl...
> 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);
missing/default argument for the Position argument (not sure how that would
be done using C++).
"Ashish" <akohli_2004@hotmail.com> wrote in message
news:enarA%23xnJHA.3572@TK2MSFTNGP05.phx.gbl...
> 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);