TIdAttachment and abstract class

Giganews Newsgroups
Subject: TIdAttachment and abstract class
Posted by:  duf (d…@wp.pl)
Date: Fri, 28 Mar 2008

In Indy 10 TIdAttachment is an abstract class. How can I get attachment in such a case ?
In Indy 9 it was simple:

TIdAttachment *IdAtt = new TIdAttachment( IdMessage1->MessageParts, "D:\Temp\temp.txt" );

Replies