Mega Search
23.2 Million


Sign Up

Make a donation  
Turbo C++ Explorer and Indy  
News Group: borland.public.cppbuilder.internet.socket

I know that the explorer edition of Turbo C++ does not include the Indy 
components. I was wondering if it was still possible to use Indy with the 
design time packages and if so what are the necessary steps to have this 
done. 



Vote for best question.
Score: 0  # Vote:  0
Date Posted: 29-Dec-2007, at 9:21 AM EST
From: Andre Hamilton
 
Re: Turbo C++ Explorer and Indy  
News Group: borland.public.cppbuilder.internet.socket
"Andre Hamilton"  wrote in message
news:477908aa$1@newsgroups.borland.com...

> I know if I had the professional version I could just add
> methods in the events tab to set functionality

Design-time support is not required for that.  You can assign event handlers
dynamically in your run-time code as well, ie:

    void __fastcall TSomeClass::InitServer()
    {
        fServer = new TIdTCPServer(this);
        fServer->OnExecute = &ServerExecute;
        //...
    }

    void __fastcall TSomeClass::ServerExecute(TIdContext *AContext);
    {
        //...
    }

> I realize that some of the methods(in TIdTCPServer) are
> declared as virtual. So can I assume to use the Indy package
> that I would have to create a child class that overrides all the
> virtual methods

No.  You can use the existing components as-is.

> or does the lib contain blank implementations.

No, as it does not need to.


Gambit



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 1-Jan-2008, at 7:24 PM EST
From: Remy Lebeau \(TeamB\)
 
Re: Turbo C++ Explorer and Indy  
News Group: borland.public.cppbuilder.internet.socket
Ok. I was able to create a new variable of type TIdTCPServer, and it 
compiled after including the Indy lib files manually. I know if I had the 
professional version I could just add methods in the events tab to set 
functionality, however there is no design time package. I realize that some 
of the methods(in TIdTCPServer) are declared as virtual. So can I assume to 
use the Indy package that I would have to create a child class that 
overrides all the virtual methods, or does the lib contain blank 
implementations. If I need to create the child class, is there any 
documentation that says how to go about such.

Thanks



"Remy Lebeau (TeamB)"  wrote in message 
news:477884c8$2@newsgroups.borland.com...
>
> "Andre Hamilton"  wrote in message
> news:477657e5$1@newsgroups.borland.com...
>
>> I was wondering if it was still possible to use Indy with
>> the design time packages
>
> The Explorer edition of Turbo does not support installation of third-party
> design-time packages.  You need the Professional edition for that, or the
> full Studio product/suite instead.  You can, however, add the Indy libs to
> your Explorer project manually and then dynamically instantiate the 
> desired
> Indy objects at run-time.  But you cannot use any of the design-time
> features at all.
>
>
> Gambit
>
> 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 31-Dec-2007, at 10:20 AM EST
From: Andre Hamilton
 
Re: Turbo C++ Explorer and Indy  
News Group: borland.public.cppbuilder.internet.socket
"Andre Hamilton"  wrote in message
news:477657e5$1@newsgroups.borland.com...

> I was wondering if it was still possible to use Indy with
> the design time packages

The Explorer edition of Turbo does not support installation of third-party
design-time packages.  You need the Professional edition for that, or the
full Studio product/suite instead.  You can, however, add the Indy libs to
your Explorer project manually and then dynamically instantiate the desired
Indy objects at run-time.  But you cannot use any of the design-time
features at all.


Gambit



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 30-Dec-2007, at 9:57 PM EST
From: Remy Lebeau \(TeamB\)