Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: How to add ScktComp.pas to BDS2006 Delphi32???

www.cryer.info
Managed Newsgroup Archive

Re: How to add ScktComp.pas to BDS2006 Delphi32???

Subject:Re: How to add ScktComp.pas to BDS2006 Delphi32???
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Thu, 29 Mar 2007 00:18:21

"Bo Berglund" <bo.berglund@telia.com> wrote in message
news:i3lm039lhjehtghfefqe61c3anpang1c00@4ax.com...

> Is there any way to put in conditionals to detect BDS2006
> versus Delphi7 and use different sourcelines for each?

Indy has an IdCompilerDefines.inc include file for exactly that
purpose.

>   IdSendMail.AuthType := IdSmtp.???; (what to use here?)

    {$I IdCompilerDefines.inc}

    {$IFDEF INDY100}
    IdSendMail.AuthType := IdSmtp.atDefault;
    {$ELSE}
    IdSendMail.AuthenticationType := IdSmtp.atLogin;
    {$ENDIF}


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive