存档

文章标签 ‘报毒’

瑞星误报delphi程序

2009年2月26日 timmy 没有评论 376 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]

若日志经rss订阅或导入到外站,可能有些视频和图片无法显示,请点击原文链接查看。
本文链接地址: http://imtimmy.com/%E7%91%9E%E6%98%9F%E8%AF%AF%E6%8A%A5delphi%E7%A8%8B%E5%BA%8F/

转载请注明: 转载自Timmy's Blog

如果你觉得本博内容不错,欢迎 [订阅 Timmy's Blog],以便第一时间了解本博更新内容;

分类: Sentiment 标签: , , ,