PDA

Ver la Versión Completa : Instalación De Indy 10


DarkByte
02-10-2005, 12:49:23
Wops!!

Tengo las Indy 10, tanto instaladas el Delphi 7 (bajandome la ultima version de los componentes, eliminando las indy de la lista de paquetes, Lib y windows\system32 para ejecutar el instalador) y en Delphi 2005. En ninguno de los dos me tira. He de reconocer de que en el pc del Delphi'05 también tengo instalado el Delphi 7...


Uno de los principales problemas los tengo con el IdTCPServer...


//[...]
type
TForm1 = class(TForm)
IdTCPServer1: TIdTCPServer;
procedure IdTCPServer1Execute(AContext: TIdContext);
//[...]
procedure TForm1.IdTCPServer1Execute(AContext: TIdContext);
begin
ShowMessage('Pepe');
end;

Me lo agradece un un:
[Error] Unit1.pas(12): Undeclared identifier: 'TIdContext'

DarkByte
02-10-2005, 13:04:00
"As discussed previously, the events of TCP servers have changed. Instead of passing a thread, they now pass a context. The easiest way to fix these changes is to cut the old events and place them in notepad. Create a new event using the form editor, and then paste the contents into each of the new events. This will allow Delphi to fix up the form headers, as well as the DFM for you.



The new events accept a TIdContext as an argument and thus the IdContext unit will need to be added to the interface uses clause.



interface



uses

Graphics, Controls, Forms,

Classes,

IdBaseComponent, IdComponent, IdTCPServer,

IdContext,

SysUtils;"

Extraido de: http://bdn.borland.com/borcon2004/article/paper/0,1963,32160,00.html