Delphi 7: Handling events in console application (TidIRC)
问题 I'm trying to make a console application based on Indy's IRC Component (TIdIRC) but I'm having trouble with events. Here's my code: program Project1; {$APPTYPE CONSOLE} uses SysUtils, Classes, Math, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdIRC; type TEvents = class public procedure Raw(Sender: TObject; AUser: TIdIRCUser; ACommand, AContent: String; var Suppress: Boolean); end; const IrcServ = 'gr.irc.gr'; IrcPort = 6667; IrcChan = '#lalala'; var Irc: TidIRC; Event: