Re: Accessing message parts from BCB

Giganews Newsgroups
Subject: Re: Accessing message parts from BCB
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Fri, 5 Mar 2004

"John Franklin" <jo…@lesberries.co.uk> wrote in message
news:4CCC169A6494E240jo…@lesberries.co.uk...

> Could you please tell me how to determine the type of a
> message part (text or attachment) when iterating through
> all the parts from C++.

Use dynamic_cast.

> The examples are in Pascal and I can't determine the C++
> equivalent for
>
> if (Msg.MessageParts.Items[intIndex] is TIdAttachment)

    if( dynamic_cast<TIdAttachment*>(Msg->MessageParts->Items[intIndex]) !=
NULL )

Gambit

Replies

None

In response to

Accessing message parts from BCB posted by John Franklin on Fri, 5 Mar 2004