Howdy, Stranger!

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


Strange if statement missing. 5 lines code.

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

if (mess->MessageParts->Items[inindex] is TIdAttachmentFile)
{ li=lvAttachments->Items->Add();
raises error on first line with message "If statement missing )"
Value mess is TIdMessage type.


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

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


    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:

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