Thread View: borland.public.cppbuilder.internet.socket
5 messages
5 total messages
Started by dave
Tue, 03 Oct 2006 18:02
some problems with installing indy 9 on Builder 6
Author: dave
Date: Tue, 03 Oct 2006 18:02
Date: Tue, 03 Oct 2006 18:02
59 lines
3177 bytes
3177 bytes
Hello,
I am having some problems with the installation of Indy 9.
Most of the components seem to work. But the components on the Indy I/O Handler palette don't. For isntance when I put these two components on a blank form (IdSSLIOHandlerSocket1, IdServerIOHandlerSSL1) I get these errors:
[C++ Error] IdIOHandlerSocket.hpp(36): E2316 'TIdSocksInfo' is not a member of 'Idsocks'
[C++ Error] IdIOHandlerSocket.hpp(36): E2040 Declaration terminated incorrectly
[C++ Error] IdIOHandlerSocket.hpp(37): E2316 'TIdSocksInfo' is not a member of 'Idsocks'
[C++ Error] IdIOHandlerSocket.hpp(37): E2293 ) expected
[C++ Error] IdIOHandlerSocket.hpp(38): E2316 'TIdSocksInfo' is not a member of 'Idsocks'
[C++ Error] IdIOHandlerSocket.hpp(38): E2040 Declaration terminated incorrectly
[C++ Error] IdIOHandlerSocket.hpp(56): E2316 'TIdSocksInfo' is not a member of 'Idsocks'
[C++ Error] IdIOHandlerSocket.hpp(56): E2040 Declaration terminated incorrectly
[C++ Error] Unit1.h(20): E2303 Type name expected
[C++ Error] Unit1.h(20): E2139 Declaration missing ;
[C++ Error] Unit1.h(21): E2303 Type name expected
[C++ Error] Unit1.h(21): E2139 Declaration missing ;
[C++ Error] Unit1.h(20): E2109 Not an allowed type
[C++ Error] Unit1.h(21): E2109 Not an allowed type
--------
Another problem I am having is when I compiled a project with the IdHTTP component. I am having problems with the Post method. I have the following code.
bool TForm1::Post_To_Web1_A_String(AnsiString Request_Content_Type, AnsiString Http_Loc, TStringList *content)
{
TMemoryStream *mem1 = new TMemoryStream();
try
{
try
{
//content->Text = "CREATE TABLE test5 (`Key_ID2` INT(11) NOT NULL)";
IdHTTP_Web1->Request->ContentType = Request_Content_Type;
IdHTTP_Web1->Post(Http_Loc, content, mem1);
//IdHTTP_Web1->Post()
}
__finally
{
content->Clear();
}
}
catch(const Exception &e)
{
ShowMessage(e.Message);
return(false);
}
return(true);
}
And I get the following error:
[Linker Error] Unresolved external '__fastcall Idhttp::TIdHTTP::Post(System::AnsiString, const Classes::TStrings *, const Classes::TStream *)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\SITE_BUILDER\SITE_BUILDER_UNIT1.OBJ
Any ideas?
Re: some problems with installing indy 9 on Builder 6
Author: Remy Lebeau (TeamB)
Date: Tue, 03 Oct 2006 18:18
Date: Tue, 03 Oct 2006 18:18
38 lines
1906 bytes
1906 bytes
"dave" <dave@nospamme.com> wrote in message
news:4522a59b$1@newsgroups.borland.com...
> I am having some problems with the installation of Indy 9.
BCB 6 ships with Indy 8 pre-installed. Did you uninstall Indy 8 and remove
its files from the machine before then trying to install Indy 9?
> [C++ Error] IdIOHandlerSocket.hpp(36): E2316 'TIdSocksInfo' is not a
member of 'Idsocks'
Yes, it is:
--- IdSocks.hpp ---
namespace Idsocks
{
...
class DELPHICLASS TIdSocksInfo;
class PASCALIMPLEMENTATION TIdSocksInfo : public
Idcomponent::TIdComponent
{
...
};
...
};
> Another problem I am having is when I compiled a project with the IdHTTP
> component. I am having problems with the Post method.
<snip>
> And I get the following error:
<snip>
You don't have the Indy library added to your project.
Gambit
Re: some problems with installing indy 9 on Builder 6
Author: dave
Date: Tue, 03 Oct 2006 18:27
Date: Tue, 03 Oct 2006 18:27
50 lines
2194 bytes
2194 bytes
Hello Remy,
I had a older version of Indy....older than 8. I did remove that version. At least I believe I removed it all. I followed the steps on how to remove Indy from the knowledge base on the Indy webpage. Would I be better uninstalling 9 and going down to 8?
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
>"dave" <dave@nospamme.com> wrote in message
>news:4522a59b$1@newsgroups.borland.com...
>
>> I am having some problems with the installation of Indy 9.
>
>BCB 6 ships with Indy 8 pre-installed. Did you uninstall Indy 8 and remove
>its files from the machine before then trying to install Indy 9?
>
>> [C++ Error] IdIOHandlerSocket.hpp(36): E2316 'TIdSocksInfo' is not a
>member of 'Idsocks'
>
>Yes, it is:
>
> --- IdSocks.hpp ---
>
> namespace Idsocks
> {
> ...
> class DELPHICLASS TIdSocksInfo;
> class PASCALIMPLEMENTATION TIdSocksInfo : public
>Idcomponent::TIdComponent
> {
> ...
> };
> ...
> };
>
>> Another problem I am having is when I compiled a project with the IdHTTP
>> component. I am having problems with the Post method.
><snip>
>> And I get the following error:
><snip>
>
>You don't have the Indy library added to your project.
>
>
>Gambit
>
>
Re: some problems with installing indy 9 on Builder 6
Author: Remy Lebeau (TeamB)
Date: Tue, 03 Oct 2006 19:48
Date: Tue, 03 Oct 2006 19:48
17 lines
1458 bytes
1458 bytes
"dave" <dave@here.com> wrote in message news:4522aba1$1@newsgroups.borland.com... > I followed the steps on how to remove Indy from the knowledge > base on the Indy webpage. Then something else is wrong with your installation. You probably still have old files still lingering around. > Would I be better uninstalling 9 and going down to 8? No. Indy 8 is no longer supported, and lacks features that many modern protocols use. Gambit
Re: some problems with installing indy 9 on Builder 6
Author: dave
Date: Tue, 03 Oct 2006 19:55
Date: Tue, 03 Oct 2006 19:55
14 lines
1222 bytes
1222 bytes
Thanks Gambit for you aid. :) I figured out what was wrong. The steps to add version 9 I found were at this link http://www.indyproject.org/KB/ And you may or may not need to do this step as well Tools / Environment Options / Browsing Path (add the path to your directory here) ---Dave
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads