存档

文章标签 ‘误报’

瑞星误报delphi程序

2009年2月26日 没有评论 425 views

      今天实验课遇到个极其郁闷的事情,远程连到自己机子上做dephi实验,编完后按运行居然被瑞星报毒,纠结了好久,就是报毒。在叫来老师确认语句准确无误后,我突然想会不会是瑞星误报,把瑞星关掉,重新编译,乖乖,成功了- -||
[codes=delphi]
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    ListBox1: TListBox;
    ListBox2: TListBox;
    Button1: TButton;
    procedure ListBox1DblClick(Sender: TObject);
    procedure ListBox2DblClick(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.ListBox1DblClick(Sender: TObject);
begin
  self.ListBox2.Items.Add(self.ListBox1.Items[self.ListBox1.ItemIndex]);
  self.ListBox1.Items.Delete(self.ListBox1.ItemIndex);
end;

procedure TForm1.ListBox2DblClick(Sender: TObject);
begin
  self.ListBox1.Items.Add(self.ListBox2.Items[self.ListBox2.ItemIndex]);
  self.ListBox2.Items.Delete(self.ListBox2.ItemIndex);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin          
  showmessage(self.ListBox1.Items[self.ListBox1.ItemIndex]);
end;

end.
[/codes]

分类: Sentiment 标签: , , ,