Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mcptUnknown is undeclared
#1
Sad 
Hi,

I am migrating my project from delphi 2009 to delphi berlin and using Indy10 in this. 

In class IdMessageCode, it is saying undeclared Identifier mcptUnknown.

Can you explain why is it happening?

Thanks 
kanhaiya
Reply
#2
(10-30-2018, 11:00 AM)jeekanhaiya6 Wrote: In class IdMessageCode, it is saying undeclared Identifier mcptUnknown.

As it should be, because mcptUnknown existed in Indy 9 only:

Code:
type
  TIdMessageCoderPartType = (mcptUnknown, mcptText, mcptAttachment);

But it no longer exists in Indy 10:

Code:
type
  TIdMessageCoderPartType = (mcptText, mcptAttachment, mcptIgnore, mcptEOF);

There is no such thing as an "unknown" type of message part in Indy 10. Most message parts that you will ever concern yourself with are either mcptText or mcptAttachment. The other part types are for Indy's internal use.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)