Re: Undeclared identifier 'TidAttachment'

Giganews Newsgroups
Subject: Re: Undeclared identifier 'TidAttachment'
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Tue, 19 Jul 2005

"Odin Roll-Hansen" <od…@istra.no> wrote in message
news:758BAC7D02D3E240od…@istra.no...

> TidAttachment.Create(idMessage1.MessageParts, AttachmentFileName);

That code will not work in Indy 10.  TIdAttachment is an abstract base class
in Indy 10.  You cannot use it directly.  Use one of the new descendant
classes now, such as TIdAttachmentFile:

    Uses IdAttachmentFile;

    TIdAttachmentFile.Create(idMessage1.MessageParts, AttachmentFileName);

Gambit

Replies

None

In response to

Undeclared identifier 'TidAttachment' posted by Odin Roll-Hansen on Tue, 19 Jul 2005