Im unable to resolve the problem. So plz try to help me.I will descibe u my
requirment here.

Problem description:

Im writing a custom DLL based on MAPI. Which will send mails.
So my problem here is I want to send the outlook item as an Attachment. So
for that insted of usaing Attachments.Add method(which is provided by
outlook Object Model), Im using a property by
which u can assign the "outlook Item" to a member variable.
ex: m_AttachObj= item (Im using this, insted of creating
attachments collection object, as Im sure that there will be only one
attachment as per our requirment). Here If I use Attachments.Add method it
will add the attachment as an OLE link.
Here im taking m_AttachObj as a CComVariant. So in order to add
this(item/m_AttachObj) as an attachment, How do u want me to proceed. Here,
clearly I cant get the Filename as item will never have any filename so that
I can convert it to a stream, (i.e) using OpenStreamOnFile().

So my worry is how to get an OLE link or ole object from the item thats
been assigned to a object varibale from outlook client.
I guess u got the problem. Feel free to ask me any questions if you are
unable to understand my problem.
In breif Im trying to get the outlook item and send them as an attachment.

Any sort of help will be appreciated.

Regards
Satish Jupalli