你好。请部如何发表自已的帖子

解决方案 »

  1.   

    把时间和次数都写到注册表里,每次登陆都验证,我想这是最简单了。
      

  2.   

    这个如何做呢?
    能给点代码吗
      

  3.   

    根据应用程序的创建时间。。来判断时间。把使用的时间和次数写在应用程序的头文件或尾文件然后进行加密。
      

  4.   

    把次数写入注册表
    时间可以写入注册表或者是直接设定
    相关代码网上多
      

  5.   

    谢谢
    没有类似的代码参考,感觉很难啊
      

  6.   


    RegistryKey rk=Registry.CurrentUser;//返回CurrentUser根键
    rk=rk.CreateSubKey("Software\\my\\WinReg");//创建注册表路径DateTime date=Convert.ToDateTime(rk.GetValue("date"));//从注册表取日期
    int count=Convert.ToInt16(rk.GetValue("count"));//从注册表取使用次数rk.SetValue("date",DateTime.Now);//向表写日期
    rk.SetValue("count",30);//向注册表写使用次数