1) One day, the following dialog box pops up when we suddenly find the application that uses the tchart control.
2) The control has passed the trial period !!!, You don't have to worry about it. Let's step by step remove this restriction. The program on the. net platform is used. The source code is visible. Maybe we can easily find a solution from the source code. The following uses a tool Reflector that can decompile the. net program.
3) Open Relecotor and load the Assembly referenced by the tchart control, that is, directly open the tchart. dll file.
4) Find the TChart class. Why should I start from this class ??? Because we use the TeeChart control to start from instantiating this class, and then view its constructor. cor ()
5) I did not see the name of this document. I continued to check the two initialization functions and tracked the InitVars () function. The result is as follows:
6) Are you aware of the problem ??? The pop-up window came out from here. Some people say that I know how to do it. I just need to comment out the pop-up window code. Indeed, after a comment is made, the pop-up window is displayed, but there is a watermark behind it. This cannot completely solve the problem. We should continue to track the value of evalExpired. If evalExpired is a member of the chart, go to the Chart class to see it ......
7) continue viewing initVar ();
8) Now, you have to go to the IsExpired function under Utils to solve this problem. Let's take a look at what has been written in it.
9) Now it is clear that there are two solutions: one is to modify the program here, and return false directly after all annotations; the other is not to use this program, modify the registry. In fact, I think the latter method is better. The previous method is a little troublesome. After that, we need to re-compile it and solve the issue of strong signature, in the following method, you only need to change the registry once for free.
10) when the program is started for the first time, information about the current date is written in the registry. the first few lines of the Program indicate whether the trial period has exceeded 40 days, if we change the start date to a certain day after n years, can we continue the trial period?
11) Let's look at the last few lines of code. We only look at the year. str7 represents the year, that is, the number between 95 and-48 in the registry, for example, 12 years, if we change 12 to 92, that is, we can continue to use 2092. We have used enough for our whole life. Haha, we just cracked tchart.net.
Oh, the modified registry key value is
HKEY_CLASSES_ROOT \ CLSID \ {CC7128D5-4CA2-4668-B37D-3819F6DCC2A3} \ TypeLib