Hello, in Delphi 2005 when I assign my procedure to ftp.dSock.OnStatus (ftp:TFTPSend;) like that:
ftp.dSock.OnStatus:=mySockOnStatus; compiling I get en error message "E2009 Incompatible types: 'method pointer and regular procedure'". But in my VCL application the same scenario works OK! The procedure `mySockOnStatus` is very simple and looks like procedure mySockOnStatus(Sender: TObject; Reason: THookSocketReason; const Value: String); begin if Reason = HR_WriteCount then begin Stored:=Stored + StrToInt64(Value); +.... some printig code of .... end; end; Thank you in advance for any help. Regards Pavel ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public