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

www.cryer.info
Managed Newsgroup Archive

indy TIdHTTP usage

Subject:indy TIdHTTP usage
Posted by:"Ed" (..@kdtc.net)
Date:Sun, 16 Apr 2006 01:30:09

Dear All,

I'm trying to get acquainted with the new BDS
IDE and it's very strange.  Not sure what
it's trying to emulate, but it's certainly
weird.

Anyway,  I haven't been playing much on it
so I figured I'd slap up a simple form which
contains a memo, button and a TIdHTTP component.
(I'm *very* new at this Indy programming so
please forgive any mistakes.)

When the user clicks on the button, the
memo shows information from a pre-defined
url.

However, I'm not even able to get to that
part of creating an event for the button's
onclick.   Just browsing the source, I get
one error in the mainform's public definition.

    TMainForm = class(TForm)
      ...

    IdHTTP1 : TIdHTTP;
              ~~~~~~~

When I mouseover the TIdHTTP, I get an
"Undeclared identifier: 'TIdHTTP'"

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

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

I installed BDS without the .NET personality but
with the CPP one.   I installed the Indy
components and Intraweb ones as well.

is there something amiss?  As my initial foray
into Internet programming under BDS, it's
not too easy.   And as a 'returning' Delphi
programmer, it's even harder.  (I get a similar
note from the C++ Personality...)

Any help/tips appreciated.


Edmund

Replies:

www.cryer.info
Managed Newsgroup Archive