Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 10-10-2007
Avatar de Enan0
Enan0 Enan0 is offline
Miembro
 
Registrado: may 2004
Ubicación: Argentina
Posts: 565
Poder: 20
Enan0 Va por buen camino
Error al Adjuntar evento

Hola amigos. Bueno aca tengo un problemita al Atachar un evento en tiempo de ejecucion, Error esta en rojo y la linea que lo da es la que esta debajo.

El resto de la unidad funciona bien..

saludos



Código Delphi [-]

unit TTSkype;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, OleCtrls, SKYPE4COMLib_TLB, OleServer,shellApi;

   Function IniTialize(Import:Boolean=True):Boolean;
   Function GetUserContacts:IUserCollection;
   Procedure MakeCall(Const S:String);
   Procedure SendMessageSkype(Const S:String);
   Procedure ImportContacts;
   Procedure StartChat(Const s:String);
   procedure SkypeError(Sender: TObject; const pCommand: ICommand;
      Number: Integer; const Description: WideString);

var
   Skype:TSkype;



implementation
Uses TTPerson,dball,TTid,TtItem,TtRoot,TtDbTtw,TtVar,TTTypes,SqlModule,AdoDB,
     TTClass,Ttver,UdmLang;

Function IniTialize(Import:Boolean=True):Boolean;
Begin
Try
   Result:=True;
   If Skype=nil then
   Skype :=Tskype.Create(nil);

//ERROR
//Incompatible Types: Pointer Method and Regular procedure
   Skype.OnError:=SkypeError;

   if not Skype.Client.IsRunning then begin
      ShowMessage(dmLang.MultiLangs.GetText('@Skype5'));
      RaiseLastWin32Error;
   end;

   Skype.Attach(7,true);
   If Import then
      if MessageDlg(dmLang.MultiLangs.GetText('@Skype1')+','+ #13#10+
                   dmLang.MultiLangs.GetText('@Skype2'),mtconfirmation,[mbYes,mbno],-1) =id_yes then
       ImportContacts;
except
   Result:=False;
   Skype:=nil;
end;
end;
Responder Con Cita
  #2  
Antiguo 10-10-2007
Avatar de jhonny
jhonny jhonny is offline
Jhonny Suárez
 
Registrado: may 2003
Ubicación: Colombia
Posts: 7.058
Poder: 30
jhonny Va camino a la famajhonny Va camino a la fama
Los parametros que tienes definidos en el procedimiento SkypeError, no son equivalentes a los que acepta el evento OnError del objeto Skype.
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!"

http://www.purodelphi.com/
http://www.nosolodelphi.com/
Responder Con Cita
  #3  
Antiguo 10-10-2007
Avatar de Enan0
Enan0 Enan0 is offline
Miembro
 
Registrado: may 2004
Ubicación: Argentina
Posts: 565
Poder: 20
Enan0 Va por buen camino
Hola la declaración esta identica.. no se porque no me funciona

Código Delphi [-]
 TSkypeError = procedure(Sender: TObject; const pCommand: ICommand; Number: Integer; 
                                           const Description: WideString) of object;
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

Temas Similares
Tema Autor Foro Respuestas Último mensaje
cometí un error al poner como noticia el evento de codegear? poliburro La Taberna 6 03-10-2007 02:35:34
Capturar error envio de correos con el evento OnFailedRecipient arante73 Internet 0 17-07-2007 10:05:54
Error en evento OnExit en TDBEdit halcon_rojo Varios 1 27-04-2006 23:17:19
Adjuntar un archivo a una mail ichavero Internet 2 06-05-2005 20:48:10
Adjuntar archivo a e-mail Barriccel Internet 2 11-12-2003 09:27:47


La franja horaria es GMT +2. Ahora son las 09:03:32.


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