C
cyan21
hello,
I'm trying to get the informations from an attachment but it don't
manage to get it.
why does this piece of code doesn't work ?
CComPtr<Outlook::_Application> olapp;
CComPtr<Outlook::_MailItem> mail;
CComPtr<Outlook::Attachment> attch;
_bstr_t field;
olapp.CoCreateInstance(__uuidof(Outlook::Application), NULL,
CLSCTX_SERVER);
olapp->raw_CreateItem(Outlook:lMailItem, &pDisp);
attch = mail->GetAttachments(); field = attch->GetFileName();
thanks in advance for your answers.
yann
I'm trying to get the informations from an attachment but it don't
manage to get it.
why does this piece of code doesn't work ?
CComPtr<Outlook::_Application> olapp;
CComPtr<Outlook::_MailItem> mail;
CComPtr<Outlook::Attachment> attch;
_bstr_t field;
olapp.CoCreateInstance(__uuidof(Outlook::Application), NULL,
CLSCTX_SERVER);
olapp->raw_CreateItem(Outlook:lMailItem, &pDisp);
attch = mail->GetAttachments(); field = attch->GetFileName();
thanks in advance for your answers.
yann