Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Re: indy TIdHTTP usage

www.cryer.info
Managed Newsgroup Archive

Re: indy TIdHTTP usage

Subject:Re: indy TIdHTTP usage
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Mon, 17 Apr 2006 12:08:13

"Ed" <ed@kdtc.net> wrote in message news:44412da0@newsgroups.borland.com...

> However, I'm not even able to get to that
> part of creating an event for the button's
> onclick.

Why not?  Just double-click on the event in the Object Inspector, or on the
button itself, like you would in any other version of Delphi.

> Just browsing the source, I get one error in the mainform's public
definition.
<snip>
> When I mouseover the TIdHTTP, I get an
> "Undeclared identifier: 'TIdHTTP'"

Did you add IdHTTP to your uses clause?

> So I take a look at the uses list and notice
> "Indy" not there.  So I add "Indy" to the
> end.

That was not the correct thing to do.  You cannot add tne entire Indy
library to your code generically like that.  You have to specify the
individual units, just like with any other VCL component.

> Now, I have two errors.  Aside for the
> unidentifier 'TIdHTTP', I also get
> "cannot resolve unit name 'Indy'"

There is no unit named "Indy".


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive