Re: Attachments not working after installing Indy 10 for Delphi7

Giganews Newsgroups
Subject: Re: Attachments not working after installing Indy 10 for Delphi7
Posted by:  Remy Lebeau (Indy Team) (no.spam@no.spam.com)
Date: Thu, 18 Jan 2007

"Alan Davies" <alan.davi…@aldis-systems.co.uk> wrote in message
news:AFE56D6D9417E340alan.davi…@aldis-systems.co.uk...

> [Error] MailUnit.pas(82): Undeclared identifier: 'TIdAttachment'

TIdAttachment was moved into its own unit in Indy 10 -
IdAttachment.pas - which you have to add that to your uses clause
separately.  Also, TIdAttachment is an abstract base class in Indy 10,
so don't instantiate it directly anymore.  To create new attachments,
you have to use a derived class, such as TIdAttachmentFile or
TIdAttachmentMemory.

Gambit

Replies

None

In response to

Attachments not working after installing Indy 10 for Delphi7 posted by Alan Davies on Thu, 18 Jan 2007