分页: 93/95 第一页 上页 88 89 90 91 92 93 94 95 下页 最后页 [ 显示模式: 摘要 | 列表 ]
Jan
27

VB连接数据库的方法1     2007

 20:11    9205    0   九天狼 VB代码

Public connSTR As String  '定义一个公用变量

Public Function CData() '连接数据库,
On Error GoTo errEnd
dbName = App.Path
If Right(dbName, 1) <> "\" Then dbName = dbName + "\"
dbName = dbName + "Data.mdb"
connSTR = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbName & ";Persist Security Info=False"
Exit Sub
errEnd:
   MsgBox err.Description, vbOKOnly + vbExclamation, "打开数据库出错"
End Function

Jan
27

散步     2007

 20:10    3259    0   九天狼 大杂烩
今天感觉阳光好刺眼。
自从N年前配了隐形眼镜后,就有好几年没有再戴过框架的眼镜了。
半年前上班后,每天早上都要起很早,但是我这人最喜欢半夜上床睡觉,早上起床是每天让我最痛苦的事情了。每天早上起床的时候,总是在想今天不上班该多好啊。可,班还是要去上的,至少在我还在这个厂里上班的时候。因为早上总是不想起床,所以早上戴隐形眼镜感觉实在是太麻烦了,因此就又换回了框架的眼镜。
每天眼镜在鼻子上边呆16个钟头以上,感觉我的眼眶好像又凹陷下去了。框架眼镜戴的时间长了,眼眶是会凹陷下去了。这也是为什么一个近视的长时间戴着框架眼镜的人为什么一不戴眼镜人们就很容易可以看出他是近视的原因了,虽然他的眼睛此时并没有眯着。
撤了很多闲话。今天中午吃过饭后。在厂里散步的时候把眼镜摘了下来。刚才还清晰的世界马上变得模糊起来了。
一开始学得还不错,没几分钟。在视野开道的地方,就觉得眼前的阳光越来越刺眼了。感觉就像是一个从来没有见过阳光的瞎子突然见到了阳光那样的不适应。虽然我不是瞎子,但可以想像一下。
在这里建议戴眼镜的朋友,经常把眼镜取下来。让你的眼睛重新适应没有东西隔离的阳光吧。
Jan
27

Blog显示错位修复     2007

 20:06    3487    0   九天狼 大杂烩
今天一个朋友说我的Blog显示错位.郁闷.前天刚改好的终于显示不错位了.今天又是错位.而且还是全部错位
更郁闷的是我用的是IE7.貌似它会自动修正错位.所以我的浏览器里显示的都是正常的.因此也看不出来有没有错位.只有朋友们提醒才知道.
和朋友在QQ上,我边改,边让他刷新看.终于花了半个小时把错位的都修正过来了.
另外,希望来这里的朋友发现有错误.请留言给我,或在下面回复.这样我才能把这里修改得更完美一点
Jan
26

一些病毒专杀工具     2007

 23:07    5145    0   九天狼 系统网络
下面包含了一点病毒专杀工具,因为数量比较多,因为.请点击下面的阅读全文后查看
Jan
26

2006年度网络病毒3大恶     2007

 22:59    4651    0   九天狼 系统网络
转自:毒霸信息安全网
开篇语:当病毒遇到经济利益
“利益”是目前病毒发展的驱动剂,当前病毒的绝大部份变化都 是围绕此中心展开的。有人想盗用网游装备,有人想“免费”用QQ服务,有人想窥探他人隐私,有人想提高网站流量,有人想迅速“抢占”桌面……

恶行1:网络敲诈愈演愈烈 网民胆战心惊

突然有一天,大量上网用户收到了这样赤裸裸的敲诈信息:“为了确保你能尽快修复全部资料,必须在两小时内迅速办理”、“你必须拯救修复丢失的资料,请汇款到XX帐号”网络敲诈作为2006年的一个新名词,确实让广大网民心跳了一把!大量受害者一时间不知所措,大量的钱财也因此流入了病毒制造者的口袋……

作恶手段

1. 试图隐藏用户文档,让用户误以为文件丢失;
2. 以帮用户恢复数据的名义要求用户向指定的银行账户内汇入定额款项;
3. 中止用户系统中常见的杀毒软件进程,使得杀毒软件、防火墙基本失效。


恶搞分子



病毒名称:敲诈者
英文名称:Win32.Hack.SnuHay.a
病毒类型:黑客程序
影响系统:Win 9x/ME/ 2000/NT,Win XP,Win 2003
Tags:
Jan
26

终于见到熊猫烧香的真面目了     2007

 22:12    7220    0   九天狼 系统网络
病毒描述:

“武汉男生”,俗称“熊猫烧香”,这是一个感染型的蠕虫病毒,它能感染系统中exe,com,pif,scr,html,asp等文件,它还能中止大量的反病毒软件进程并且会删除扩展名为gho的文件,该文件是一系统备份工具GHOST的备份文件,使用户的系统备份文件丢失。被感染的用户系统中所有.exe可执行文件全部被改成熊猫举着三根香的模样。

“熊猫烧香”专杀工具下载:
金山专杀:http://down.www.kingsoft.com/db/download/othertools/DuBaTool_WhBoy.BAT
安天专杀:http://www.antiy.com/download/KillPP.scr
江民专杀:http://ec.jiangmin.com/test/PandaKiller.rar
安博士专杀:http://dl00.x.baidu.com/x/20060915shadu/ahn_dellboy.rar
赛门铁克专杀:http://dl00.x.baidu.com/x/20060915shadu/FixFujacks.exe
可自动升级的专杀工具:

点击在新窗口中浏览此图片

今天朋友老马中了这个毒.表现为上网速度很慢.玩游戏很卡.机器速度也很慢.不时会弹出某程序出错的信息,因为专门对此病毒进行了关注
病毒有以下表现:
Jan
25

汉字转拼音源码     2007

 15:34    9617    1   九天狼 VB代码
下面是模块代码,请将其复制到模块中.

'汉字转拼音
Public Function py(mystr As String) As String
 If Asc(mystr) < 0 Then
   If Asc(Left(mystr, 1)) < Asc("啊") Then
      py = "0"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("啊") And Asc(Left(mystr, 1)) < Asc("芭") Then
      py = "A"
      Exit Function
   End If
[separator]
   If Asc(Left(mystr, 1)) >= Asc("芭") And Asc(Left(mystr, 1)) < Asc("擦") Then
      py = "B"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("擦") And Asc(Left(mystr, 1)) < Asc("搭") Then
      py = "C"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("搭") And Asc(Left(mystr, 1)) < Asc("蛾") Then
      py = "D"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("蛾") And Asc(Left(mystr, 1)) < Asc("发") Then
      py = "E"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("发") And Asc(Left(mystr, 1)) < Asc("噶") Then
      py = "F"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("噶") And Asc(Left(mystr, 1)) < Asc("哈") Then
      py = "G"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("哈") And Asc(Left(mystr, 1)) < Asc("击") Then
      py = "H"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("击") And Asc(Left(mystr, 1)) < Asc("喀") Then
      py = "J"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("喀") And Asc(Left(mystr, 1)) < Asc("垃") Then
      py = "K"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("垃") And Asc(Left(mystr, 1)) < Asc("妈") Then
      py = "L"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("妈") And Asc(Left(mystr, 1)) < Asc("拿") Then
      py = "M"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("拿") And Asc(Left(mystr, 1)) < Asc("哦") Then
      py = "N"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("哦") And Asc(Left(mystr, 1)) < Asc("啪") Then
      py = "O"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("啪") And Asc(Left(mystr, 1)) < Asc("期") Then
      py = "P"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("期") And Asc(Left(mystr, 1)) < Asc("然") Then
      py = "Q"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("然") And Asc(Left(mystr, 1)) < Asc("撒") Then
      py = "R"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("撒") And Asc(Left(mystr, 1)) < Asc("塌") Then
      py = "S"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("塌") And Asc(Left(mystr, 1)) < Asc("挖") Then
      py = "T"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("挖") And Asc(Left(mystr, 1)) < Asc("昔") Then
      py = "W"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("昔") And Asc(Left(mystr, 1)) < Asc("压") Then
      py = "X"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("压") And Asc(Left(mystr, 1)) < Asc("匝") Then
      py = "Y"
      Exit Function
   End If
   If Asc(Left(mystr, 1)) >= Asc("匝") Then
      py = "Z"
      Exit Function
   End If
 Else
   If UCase(mystr) <= "Z" And UCase(mystr) >= "A" Then
      py = UCase(Left(mystr, 1))
     Else
      py = mystr
   End If
 End If

End Function
'汉字转拼音完


下面是使用代码:

Private Sub Text1_Change()'text1l输入时在label1中即时显示拼音
 If Option1.Value = True Then
    Label1.Caption = ""
    Dim a As Integer
    a = Len(Text1.Text)
    For i = 1 To a
        Label1.Caption = Label1.Caption & py(Mid(Text1.Text, i, 1))
    Next i
 End If
End Sub

Private Sub Command1_Click()'按command1后在label1显示拼音
 Dim a As Integer
 Label1.Caption = ""
 a = Len(Text1.Text)
 For i = 1 To a
     Label1.Caption = Label1.Caption & py(Mid(Text1.Text, i, 1))
 Next i
End Sub
Tags:
Jan
25

窗体透明源码     2007

 14:38    9028    0   九天狼 VB代码
下面是模块代码

'窗体透明代码开始
Public Const WS_EX_LAYERED = &H80000
Public Const GWL_EXSTYLE = (-20)
Public Const LWA_ALPHA = &H2
Public Const LWA_COLORKEY = &H1
Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
'窗体透明代码结束

下面是使用代码:最下边的一行中的255为透明度.值为0-255,0为完全透明,255为完全不透明

   Dim rtn As Long
   rtn = GetWindowLong(hwnd, GWL_EXSTYLE)
   rtn = rtn Or WS_EX_LAYERED
   SetWindowLong hwnd, GWL_EXSTYLE, rtn
   SetLayeredWindowAttributes hwnd, 0, 255, LWA_ALPHA
Tags:
Jan
25

vb窗体最上层源码     2007

 14:34    8447    0   九天狼 VB代码
下面的是模块代码

'窗体位于最上层代码开始
Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Public Const HWND_TOPMOST = -1
Public Const HWND_NOTOPMOST = -2
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public Const SWP_SHOWWINDOW = &H40
Public Const FLAGS = &H2 Or &H1
'窗体位于最上层代码结束


下面是使用代码,可以放在任意地方,注意的两个retvalue=同时只能使用一个

Dim retvalue As Long
retvalue = SetWindowPos(Me.hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, FLAGS)'取消最上层
retvalue = SetWindowPos(Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)'设置为最上层
Tags:
Jan
25

百度终于收了我网站一页了     2007

 14:23    6739    0   九天狼 大杂烩
真不容易啊.
今天已经是第三天了.今天site:qmmv.com了一下.终于在百度里发现了一页我的网站
还是yahoo是最快的.昨天我site都有了.
而让人郁闷的Google到现在还没有,我还是最先在他上面提交网站的呢
分页: 93/95 第一页 上页 88 89 90 91 92 93 94 95 下页 最后页 [ 显示模式: 摘要 | 列表 ]