How to realize the Software and Registration Machine with Registration function in easy language
This article is about how to implement software with registration function and registry. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
Open Easy Language, create a Windows window program, add two edit boxes and a button in the window, as shown in the figure, change the name of the control by yourself
Double-click the window and add the following code under the startup event in the startup window: Edit Box Machine Code. Content = to text (take hard disk character ()) Double-click the window, add the following code under the startup event of the startup window: Edit box machine code. Content = to text (take hard disk signature ())
Add the following code under the key clicked event, the feature word part can encrypt itself more complex
. Version 2. If (edit box registration code. Content = "") Infobox ("Please enter registration code! ", 0, , ). Otherwise. If (edit box Registration Code. Content = to text (to numeric value (edit box machine code. Content) × 2 + 111)) Message box ("Congratulations, registration successful! ", 0, " Registration successful ", ) . otherwise Message box ("Please enter correct registration code!! ", 0, " Registration failed ", ) . If it ends. if the end
Registration Code Generator
Similarly, create a Windows window program, add two edit boxes and a button in the window, as shown in the figure, change the name of the control yourself
Add the following code under the Generate Registration Code button event. The encryption algorithm should be consistent.
. Version 2. If (edit box 1 machine code. Content = "") Message box ("Please enter machine code! ", 0, , ) returns (). Otherwise edit box 2 registration code. Content = to text (to numeric value (edit box 1 machine code. content) × 2 + 111). if the end
The final registration code generated can register the software to achieve registration, these two are independent procedures, of course, here is the simplest registration demonstration
Thank you for reading! About "easy language how to achieve software and registry with registration function" this article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!