Re: TIdAttachment and abstract class

Giganews Newsgroups
Subject: Re: TIdAttachment and abstract class
Posted by:  Remy Lebeau \(TeamB\) (no.spam@no.spam.com)
Date: Mon, 31 Mar 2008

"duf" <d…@wp.pl> wrote in message news:308EB7DAFF4DE340d…@wp.pl...

> In Indy 10 TIdAttachment is an abstract class. How can I get
> attachment in such a case ?

Use the TIdAttachmentFile descendant class, ie:

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

Gambit

Replies

In response to

TIdAttachment and abstract class posted by duf on Fri, 28 Mar 2008