⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 注册码算法问题~!!.htm

📁 注册码算法问题~!!.
💻 HTM
📖 第 1 页 / 共 3 页
字号:
			document.write(".");
			document.write(date);
			// -->
			</SCRIPT>
      </B>&nbsp;&nbsp;</TD></TR>
  <TR bgColor=#999999>
    <TD colSpan=3 height=1></TD></TR></TBODY></TABLE><BR>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=770>
  <TBODY>
  <TR>
    <TD width=10>&nbsp;</TD>
    <TD align=middle vAlign=top>
      <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
        <TBODY>
        <TR>
          <TD align=right height=20 width=200>&nbsp;</TD>
          <TD align=right class=color2 colSpan=2 width=560><B><FONT 
            color=#ffffff><A 
            href="http://community.csdn.net/Expert/Forum.asp?TypeNum=7&amp;roomid=0"><FONT 
            color=#ffffff>我的问题</FONT></A>&nbsp;|&nbsp; <A 
            href="http://community.csdn.net/Expert/Forum.asp?TypeNum=5&amp;roomid=0"><FONT 
            color=#ffffff>我参与的问题</FONT></A>&nbsp;|&nbsp; <A 
            href="http://community.csdn.net/Expert/Forum.asp?TypeNum=6&amp;roomid=0"><FONT 
            color=#ffffff>我得分的问题</FONT></A>&nbsp;|&nbsp; <A 
            href="http://community.csdn.net/MyFavorite/My_Favorite.asp"><FONT 
            color=#ffffff>我的收藏夹</FONT></A>&nbsp;|&nbsp; <A 
            href="http://community.csdn.net/Message_Board/NewMessage.asp?typestate=0"><FONT 
            color=#ffffff>短信息</FONT></A>&nbsp;</FONT> <FONT 
            color=#666666></FONT></B></TD></TR>
        <TR>
          <TD class=color3 colSpan=3 height=1></TD></TR>
        <TR>
          <TD align=right colSpan=3><A 
            href="http://community.csdn.net/">CSDN</A>&nbsp;&nbsp;_&nbsp;&nbsp;FAQ列表&nbsp;&nbsp;_&nbsp;&nbsp;<A 
            href="http://community.csdn.net/expert/faq/list_faq_index.asp?RoomID=5101">基础类</A>&nbsp;&nbsp;_&nbsp;&nbsp; 
            <A 
            href="http://community.csdn.net/expert/faq/list_faq_index.asp?RoomID=5101&amp;SmallClassID=4">VB 
            技巧</A>&nbsp;&nbsp; </TD></TR>
        <TR>
          <TD height=20>&nbsp;</TD></TR></TBODY></TABLE>
      <TABLE border=0 cellPadding=3 cellSpacing=1 width=620>
        <TBODY>
        <TR bgColor=#eeeeee>
          <TD align=right vAlign=top width=40><FONT color=red 
            style="FONT-FAMILY: Arial; FONT-SIZE: 11pt"><B>Q :</B></FONT></TD>
          <TD colSpan=3 vAlign=top width=580>注册码算法问题~!!</TD></TR>
        <TR bgColor=#eeeeee>
          <TD align=right vAlign=top><FONT color=red><B>主要解答者:</B></FONT></TD>
          <TD>hxy1982</TD>
          <TD align=right><FONT color=red><B>提交人:</B></FONT></TD>
          <TD>stoneman1982</TD></TR>
        <TR bgColor=#eeeeee>
          <TD align=right vAlign=top><FONT color=red><B>感谢:</B></FONT></TD>
          <TD colSpan=3 vAlign=top width=580>Suron128、hxy1982</TD></TR>
        <TR bgColor=#eeeeee>
          <TD align=right vAlign=top><FONT color=red><B>审核者:</B></FONT></TD>
          <TD>online</TD>
          <TD align=right><FONT color=red><B>社区对应贴子:</B></FONT></TD>
          <TD><A 
            href="http://community.csdn.net/Expert/TopicView.asp?id=2187589" 
            target=_blank>查看</A></TD></TR>
        <TR bgColor=#eeeeee>
          <TD align=left colSpan=4 vAlign=top>&nbsp;&nbsp;&nbsp;&nbsp;<FONT 
            color=red style="FONT-FAMILY: Arial; FONT-SIZE: 11pt"><B> A 
            :</B></FONT> </TD>
        <TR bgColor=#ffffff>
          <TD align=left colSpan=4 vAlign=top><BR>注册码:8位纯数字~! 
            &nbsp;<BR>根据某种算法,计算得出3-9之间的结果数字~!! 
            &nbsp;<BR>当然注册码首先要有加密保护功能~!不能一猜就破,最好随机生成后~! &nbsp;<BR>不要太多,也不要太少~!! 
            &nbsp;<BR>&nbsp;<BR>希望ggjj们鼎力相助~!!!! 
            &nbsp;<BR>--------------------------------------------------------------- 
            &nbsp;<BR>&nbsp;<BR>Option &nbsp;Explicit 
            &nbsp;<BR>&nbsp;<BR>Private &nbsp;Declare &nbsp;Function 
            &nbsp;GetVolumeInformation &nbsp;Lib &nbsp;"kernel32" &nbsp;Alias 
            &nbsp;"GetVolumeInformationA" &nbsp;_ &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ByVal &nbsp;lpRootPathName 
            &nbsp;As &nbsp;String, &nbsp;ByVal &nbsp;lpVolumeNameBuffer &nbsp;As 
            &nbsp;String, &nbsp;_ &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp;ByVal &nbsp;nVolumeNameSize &nbsp;As &nbsp;Long, 
            &nbsp;lpVolumeSerialNumber &nbsp;As &nbsp;Long, 
            &nbsp;lpMaximumComponentLength &nbsp;As &nbsp;Long, &nbsp;_ 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp;lpFileSystemFlags &nbsp;As &nbsp;Long, &nbsp;ByVal 
            &nbsp;lpFileSystemNameBuffer &nbsp;As &nbsp;String, &nbsp;_ 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp;ByVal &nbsp;nFileSystemNameSize &nbsp;As &nbsp;Long) &nbsp;As 
            &nbsp;Long &nbsp;<BR>&nbsp;<BR>Private &nbsp;Declare &nbsp;Function 
            &nbsp;WriteProfileString &nbsp;Lib &nbsp;"kernel32" &nbsp;Alias 
            &nbsp;"WriteProfileStringA" &nbsp;_ &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ByVal &nbsp;lpszSection &nbsp;As 
            &nbsp;String, &nbsp;ByVal &nbsp;lpszKeyName &nbsp;As &nbsp;String, 
            &nbsp;ByVal &nbsp;lpszString &nbsp;As &nbsp;String) &nbsp;As 
            &nbsp;Long &nbsp;<BR>&nbsp;<BR>Dim &nbsp;sClick &nbsp;As 
            &nbsp;String &nbsp;<BR>&nbsp;<BR>Public &nbsp;Property &nbsp;Get 
            &nbsp;ClickInfo() &nbsp;As &nbsp;String &nbsp;<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp;ClickInfo &nbsp;= &nbsp;UCase(sClick) &nbsp;<BR>End 
            &nbsp;Property &nbsp;<BR>&nbsp;<BR>Private &nbsp;Sub 
            &nbsp;cmdCancel_Click() &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;sClick 
            &nbsp;= &nbsp;"Cancel" &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;Unload 
            &nbsp;Me &nbsp;<BR>End &nbsp;Sub &nbsp;<BR>&nbsp;<BR>Private 
            &nbsp;Sub &nbsp;cmdOrder_Click() &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp;If &nbsp;Trim(Text1.Text) &nbsp;= &nbsp;"" &nbsp;Then 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp;Text1.SetFocus &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;Else 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If 
            &nbsp;CheckRegKey(Trim(Text1.Text)) &nbsp;= &nbsp;False &nbsp;Then 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp;MsgBox 
            &nbsp;"蛁聊鎢渣昫ㄛ&amp;#63384;笭陔怀&amp;#63541;ㄐ", &nbsp;vbCritical, 
            &nbsp;"渣昫" &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cmdOrder.Caption &nbsp;= 
            &nbsp;"怀&amp;#63541;蛁聊鎢 &nbsp;[&amp;O]" &nbsp;<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp;Text1.Text &nbsp;= &nbsp;"" &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Else &nbsp;<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp;sClick &nbsp;= &nbsp;"order" &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Call 
            &nbsp;WriteRegKey &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Unload &nbsp;Me 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End 
            &nbsp;If &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;End &nbsp;If 
            &nbsp;<BR>End &nbsp;Sub &nbsp;<BR>&nbsp;<BR>Private &nbsp;Sub 
            &nbsp;cmdTest_Click() &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;sClick 
            &nbsp;= &nbsp;"Later" &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;Call 
            &nbsp;WriteRegDate &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;Unload 
            &nbsp;Me &nbsp;<BR>End &nbsp;Sub &nbsp;<BR>&nbsp;<BR>Private 
            &nbsp;Sub &nbsp;Form_Load() &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;cmdTest.Enabled &nbsp;= 
            &nbsp;blnData &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp;Label3.Caption &nbsp;= &nbsp;GetSerial 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp;Picture1.Height &nbsp;= &nbsp;lblBottom.Top &nbsp;+ 
            &nbsp;lblBottom.Height &nbsp;+ &nbsp;120 &nbsp;<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;Me.Width &nbsp;= 
            &nbsp;Label1(7).Width &nbsp;+ &nbsp;240 &nbsp;+ &nbsp;180: 
            &nbsp;Me.Height &nbsp;= &nbsp;Picture1.Height &nbsp;+ 
            &nbsp;Frame1.Height &nbsp;+ &nbsp;cmdCancel.Height &nbsp;+ &nbsp;600 
            &nbsp;<BR>End &nbsp;Sub &nbsp;<BR>&nbsp;<BR>Private &nbsp;Sub 
            &nbsp;Form_Resize() &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;On 
            &nbsp;Error &nbsp;Resume &nbsp;Next &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;Me.Top &nbsp;= 
            &nbsp;(Screen.Height &nbsp;- &nbsp;Me.Height) &nbsp;/ &nbsp;2 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;Me.Left &nbsp;= 
            &nbsp;(Screen.Width &nbsp;- &nbsp;Me.Width) &nbsp;/ &nbsp;2 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp;lblBottom.Left &nbsp;= &nbsp;(Picture1.ScaleWidth &nbsp;- 
            &nbsp;lblBottom.Width) &nbsp;/ &nbsp;2 &nbsp;<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;Frame1.Top 
            &nbsp;= &nbsp;Picture1.Height &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp;Frame1.Left &nbsp;= &nbsp;0 &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp;Frame1.Width &nbsp;= &nbsp;Me.ScaleWidth &nbsp;<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp;Label2(0).Left &nbsp;= &nbsp;(Frame1.Width 
            &nbsp;- &nbsp;Label2(0).Width &nbsp;- &nbsp;Label3.Width) &nbsp;/ 
            &nbsp;2 &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;Label3.Left &nbsp;= 
            &nbsp;Label2(0).Left &nbsp;+ &nbsp;Label2(0).Width &nbsp;<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp;Label2(1).Left &nbsp;= &nbsp;Label2(0).Left 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;Text1.Left &nbsp;= 
            &nbsp;Label3.Left &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;cmdCancel.Top &nbsp;= 
            &nbsp;Frame1.Top &nbsp;+ &nbsp;Frame1.Height &nbsp;+ &nbsp;120 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;cmdCancel.Left &nbsp;= 
            &nbsp;120 &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp;cmdTest.Top &nbsp;= &nbsp;cmdCancel.Top 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp;cmdTest.Left &nbsp;= 
            &nbsp;Me.ScaleWidth &nbsp;- &nbsp;120 &nbsp;- &nbsp;cmdTest.Width 
            &nbsp;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp;cmdOrder.Top &nbsp;= &nbsp;cmdCancel.Top &nbsp;<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp;cmdOrder.Left &nbsp;= &nbsp;cmdTest.Left &nbsp;- 
            &nbsp;cmdOrder.Width &nbsp;- &nbsp;120 &nbsp;<BR>End &nbsp;Sub 
            &nbsp;<BR>&nbsp;<BR>Private &nbsp;Function &nbsp;GetSerial() 
            &nbsp;As &nbsp;String &nbsp;<BR>&nbsp; &nbsp; &nbsp; 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -