Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Strange if statement missing. 5 lines code.

hazaminhazamin Member Posts: 4
Hi. I use Indy component for working with pop3. ( C++ Builder)
???
[code]

if (mess->MessageParts->Items[inindex] is TIdAttachmentFile)
{ li=lvAttachments->Items->Add();
li->ImageIndex=0;
li->Caption=TIdAttachmentFile(mess->MessageParts->Items[inindex])->Filename;
li->SubItems->Add(TIdAttachmentFile(mess->MessageParts->Items[inindex])->ContentType);
}
[/code]
raises error on first line with message "If statement missing )"
Value mess is TIdMessage type.

Comments

  • hazaminhazamin Member Posts: 4
    if (mess->MessageParts->Items[inindex] is TIdAttachmentFile)

    "is" is not valid C/C++.


    Result=Null;

    This isn't valid C/C++ either, it should be NULL or 0.
  • hazaminhazamin Member Posts: 4
    oh, thank you people. But my compiler (C++ Builder 6.0) has no include file . Compiler rise error

    "unable to open include file 'IdAttachment.hpp''.
    So, could you send this include file via e-mail? My e-mail is: hazamin@mail.com

    Big thanks, people.
Sign In or Register to comment.