当前位置:首页 » 多媒体相关

写了个检查IP是否合法IP的东东,要的留下Email,写的更好的不要骂我


写了个检查ip是否合法ip的东东,要的留下email,写的更好的不要骂我  
   
  我写成了dll(只有几十kb),下面是使用示例:  
  //    
  unit   unit1;  
   
  interface  
   
  uses  
      windows,   messages,   sysutils,   variants,   classes,   graphics,   controls,   forms,  
      dialogs,   stdctrls;  
   
  type  
      tform1   =   class(tform)  
          button1:   tbutton;  
          edit1:   tedit;  
          procedure   button1click(sender:   tobject);  
      private  
          {   private   declarations   }  
      public  
          {   public   declarations   }  
      end;  
   
  var  
      form1:   tform1;  
   
      function   checkip(const   mip:   pchar):   bool;  
         
  implementation  
   
  {$r   *.dfm}  
   
      function   checkip;   external   ipcheck.dll   name   checkip;  
       
  procedure   tform1.button1click(sender:   tobject);  
  begin  
      if   checkip(pchar(edit1.text))   then   showmessage(ok!)  
      else   showmessage(ip   error!);  
  end;  
   
  end.  
 

.

推荐阅读

  • 专注网吧市场 方佳一年内要进入PC市场十强 [详细内容]
  • 19液晶+256独立显卡 酷睿电脑4999 [详细内容]
  • 降300!飞利浦19寸液晶190S6欲破2K [详细内容]
  • 互联网三巨头相互疯狂复制 进入僵持阶段 [详细内容]
  • 刷机的朋友注意了——java版也有不同 [详细内容]
  • 脱俗时尚卖335 百盛C402机箱热卖 [详细内容]
  • 进入多彩MP3世界 626B开启音频新概念 [详细内容]
  • 网友回答:

    讨论区

    Login