Adding message attachments in BCB

Giganews Newsgroups
Subject: Adding message attachments in BCB
Posted by:  John Franklin (jo…
Date: Mon, 15 Mar 2004

Can someone please tell me how to add a message attachment in C++?  I
expected it to be something like:

TIdAttachment *att = new TIdAttachment;
att->Create (msg->MessageParts, asFileName);

but it fails on the first line and I can't find a constructor that works.

Help much appreciated. I'm using Indy 9 and BCB6.

Are there any BCB examples for Indy?

John Franklin