Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > OOP
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 02-10-2005
Avatar de DarkByte
DarkByte DarkByte is offline
Miembro
 
Registrado: sep 2003
Ubicación: Desconocido
Posts: 1.322
Poder: 22
DarkByte Va por buen camino
Instalación De Indy 10

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...

Código Delphi [-]
//[...]
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'
__________________
:)
Responder Con Cita
  #2  
Antiguo 02-10-2005
Avatar de DarkByte
DarkByte DarkByte is offline
Miembro
 
Registrado: sep 2003
Ubicación: Desconocido
Posts: 1.322
Poder: 22
DarkByte Va por buen camino
"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/ar...,32160,00.html
__________________
:)
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 03:59:16.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi