如何在C#中的Windows窗体应用程序中使具有到期日期的exe [英] how to make an exe with expiring date in windows form application in c#

查看:87
本文介绍了如何在C#中的Windows窗体应用程序中使具有到期日期的exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使一个具有到期日期的exe.如果exe注册30天,则它将在30天后过期.我正在使用Visual Studio 2008
请帮助我.

感谢adv.

I want to make an exe with expiring date. if exe is registered for 30 days then it will expire after 30 days. I am using visual studio 2008
pls help me.

thanks in adv.

推荐答案

这是一个经常出现的问题,有很多解决方案,但是它往往会忽略一个相当基本的问题,主要是为什么在.NET应用程序中这不是一个好主意吗?

如果您发现大多数这些解决方案旨在阻止他人非法使用您的应用程序这一事实,那么您需要考虑使用Reflector之类的工具可以轻松地逆转.NET应用程序的趋势,该工具使人们可以看到您的许可机制是,并且可以轻松绕过它.
This is a question that comes up many times, and there are many solutions, but it tends to ignore a fairly fundamental question, mainly why is this not a great idea in a .NET application?

If you look at the fact that most of these solutions are intended to try and stop somebody from illegally using your application, then you need to consider that .NET applications tend can be easily reversed using a tool like Reflector, which allows people to see what your licensing mechanism is, and to easily bypass it.


此博客可能对您有所帮助:
如何为我的应用设置过期日期 [ ^ ]
this blogs may helps to you :
How, set Expiry date for my application[^]


Rajesh,

您需要在代码中实现许可,实现的方式有多种.

1.如果您的应用程序使用数据库,则可以使用数据库

2.您可以创建自己的许可证文件,其中包含持续时间,该许可证文件可以是应用程序中包含的xml文件.当用户登录您的应用程序时,将读取此许可证文件(如果编码并与应用程序一起保存,则可能会解码),时间信息将被提取并进行比较.
Rajesh,

You need to implement licensing in your code,there are multiple ways to do it.

1.You can use databases if your application uses databases

2.You can create your own license file , with time duration inside it ,may be xml file included in your application. when user logs in your application this license file will be read(may be decoded if encoded and kept with application),time information will extracted and compared.


这篇关于如何在C#中的Windows窗体应用程序中使具有到期日期的exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆