 |
|
 |
i am satisfied with this.
|
|
|
|
 |
|
 |
DEar friends
I am triing to run this application on vista but i got error message
"An unhandled exception of type 'System.NullReferenceException' occurred in HardwareMotherboardID.dll
Additional information: Object reference not set to an instance of an object."
ajay@gujaratvidyapith.org
Ajay Parikh
India
|
|
|
|
 |
|
 |
I realize that this post is fairly old, but figured I might as well try. Could someone provide me with a bit more detail on how to incorporate this code into my project. The comment in the "Using the program" section that tells me to "add the two forms to my project" is a bit too vague for me. What do I do with the folder name code and keygen?
|
|
|
|
 |
|
 |
I'm using it with a teaching program I made for a non-profit organization. No big deal, just wanted to know where it might be. Converted it to work with vb2008 and not all functions needed so deleted a few but certainly left your credits in there. Nice job!
|
|
|
|
 |
|
 |
Hello,
Your app looks great.
But i have installed onces and when i run i keep gettig the message over and over. Logical i am a registered user ).
But where can i find the file, so i can delete it and try it again?
regards,
rocky
|
|
|
|
 |
|
 |
I found a bug. If someone deletes HardwareMotherboardID.dll and clicks continue, it defeates protection.
Place this code in the Form Load event:
Dim fileExists As Boolean
fileExists = My.Computer.FileSystem.FileExists(Application.StartupPath & "\HardwareMotherboardID.dll")
If fileExists = False Then
unregbutton.Enabled = False
MsgBox("There are files missing. Please reinstall application")
End If
|
|
|
|
 |
|
 |
I created two apps using your code. Everything is the same with the exceptions of; RegSubKeyName As String = "app1" and key As New Encryption.Data("RandomPassword1") and RegSubKeyName As String = "app2" and key As New Encryption.Data("RandomPassword2") When installed on Vista machine with UAC enabled. The first one runs fine. The second after installation gives the following error: Regristry Access denied
************** Exception Text **************
System.Security.SecurityException: Requested registry access is not allowed.
at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at ReverseIt.Trial.Trial_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The Zone of the assembly that failed was:
MyComputer
I'm at a loss to figure this one out. Any help would be greatly appreciated.
|
|
|
|
 |
|
 |
I found a solution. When you install more than one program that writes these keys to the registry on a Vista computer with UAC enabled, the first one installed will prompt the user for approval as usual. Any subsequent programs will not prompt the user, just throw an exception. If the user clicks continue the trial is ignored and the user can use the program forever. To fix this, Inside Visual Studio, go to properties. Under the Application tab click on View UAC Settings. Yhere change <requestedExecutionLevel level="asInvoker" uiAccess="false" /> to <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />. Now the user will be prompt unless they disable UAC. If they disable UAC the trial will still work.
|
|
|
|
 |
|
 |
Hey,
First off, I would like to say a BIG thank you for this amazing system. I must admit I love the easy to use interfaces, and the clear, consise code
One question though:
• When my customer has purchased the full version over the internet, they need to have their license key sent to them via email. How can I do this?
At the moment, my customer is redirected to an HTML webpage after purchasing the full program through PayPal. It is at this point I wish to send them their license key. Any help is appreciated.
Thanks,
Anthony.
|
|
|
|
 |
|
 |
first of all good job...i will rate this 5 points.Now i want to know that if i hav generated a registration key by ur registration form and i give this to user of system,then software will b unlocked, but if he gives that registration key to another user who have just trial version then his system also be unlocked by that comman key or not..? In short i want to know that single registration key can be used by many users on different machines to unlock there trial version ? please reply asap..
|
|
|
|
 |
|
 |
Yes it will, although the program will be in the original friend's name; generally speaking putting this on a splash screen or in the title bar as "Registered to: [[name]" is a strong deterrent. The only other option is a per-machine code, and those are hated by almost everyone, and attempts to do that in the past in major software have been protested.
Tyler Menezes
www.TylerM.info
|
|
|
|
 |
|
 |
Thanx for ur quick reply.Now i m getting problem with trial days.when i m using en-us culture then evrythng is fine bt when i changed my regional setting to Ar-Sa (arabic-saudi arabia) then trial days are very large , somthng 2500 days. Bcoz i m new in vb.net2008 programming so not getting any accurate idea abt that.Please look at my problem.
Thanx in advance..
With Regards,
J.A.khan
|
|
|
|
 |
|
 |
Dear Sir
where i can find HardwareMotherboardID.dll in my computer becuase when i using file HardwareMotherboardID.dll from your project the serail number can use with other computer so how can i use the serail number for one computer.
please help?
Kosal
|
|
|
|
 |
|
 |
This DLL just accesses the ID. It's not something which holds the actual identification. The serial number is not bound to one hardware ID. The hardware ID keeps people from exporting the registry keys from one PC and simply importing them to access the program wherever they go.
Tyler Menezes
www.TylerM.info
|
|
|
|
 |
|
 |
I tried your module.. its really nice, I just found a 'bug' if you happend to have a regional setting different than one that has MM/DD/YYYY
I did some changes on the form1_load to accomodate this
If OldMonth = "" Then
Else
Dim OldDate As String = OldMonth & "/" & OldDay & "/" & OldYear
Dim usCulture As CultureInfo = New CultureInfo("en-US")
Dim myDateTime As DateTime = DateTime.Parse(OldDate, usCulture.DateTimeFormat)
If DateTime.Now.Compare(DateTime.Now, myDateTime) < 0 Then
unregbutton.Enabled = False
InTrial = False
What I added/changed is on bold..
|
|
|
|
 |
|
 |
Hello!
Great article! But, where is the source for the following DLLs? I don't fee comforable using dlls from a foreign source --- for security reasons.
HardwareMotherboardID.dll
HardwareUSBDeviceID.dll
HardwareBiosID.dll
HardwareNetworkAdapter_MacID.dll
HardwareProcessorId.dll
Thanks!
Mike
modified on Friday, September 5, 2008 11:57 AM
|
|
|
|
 |
|
 |
i have a proj on my IT15 subj. we need to create system using visual basic..how can i get source code? coz my system has a duplication...which is not accepted..pls help.
|
|
|
|
 |
|
 |
The source code is located at the top of the page. It's the link titled "Download Sourcecode".
Tyler Menezes
www.TylerM.info
|
|
|
|
 |
|
 |
Loved your program of Registration Process but thought that you would like to know something about it. The registration trial period can easily be changed by changing the system date. The end user can easily increase the trial by setting the date back. Is this anything you did intentialy or have you just missed it. I am a beginner programmer and have just started programming. I do coding as a hobby. My friend asked me to make him an invoice software, which I did and people liked it very much. Now many people are asking me to make them their personalized software also and I would like to add Trial Period and Registration Process on. Please help me in this matter. if you can update the program or tell me where I am going wrong. I am using Visual Studio 2008 (I also have 2005) your program updated in both successfully but the problem with change in system date remains. (even in the demo program downloaded from CodeProject.com)
|
|
|
|
 |
|
 |
Hi,
During the last two days, I have spent most of my time looking at your program and trying to understand your code.
Now I have created my own version of it, in which almost all of the code is copied from your project, the only thing which I have changed is that now the program keeps track of the time the program is used so that the date change problem is solved.
Now I want to ask your permission if I can post it as my own article here at CodeProject and my own website (which is not up yet). I have mentioned your name at the main form and I am not someone who takes credit for others work.
|
|
|
|
 |
|
 |
This is simply the best that can be done. There is no way for this program to be able to tell if the user changed the date. The program tries to solve this by attempting to update the date and time with a time server, but this may not always work for various reasons.
In a new version I will soon release, an option will be provided to check the date with a server. This is not optimal, however, because this requires that all your customers have internet access every time they want to launch the program while it's in a trial mode.
One feature that was added to this version to prevent this is that if the user changes the date to one that is older than the time the trial started, it will lock them out.
In software which resides on a client's computer, it is always possible to crack trial periods and DRM. It is assumed, however, that rather than be so determined, most people will simply pay the money. There are ways to increase the security, but even large companies like Adobe have their software registration process cracked regularly.
One note about this method of bypassing the restriction: changing your local system date will likely cause other problems for the user, and so it's assumed that most people would rather buy the software than go through this. For example, my internet router refuses to let me connect when the date is too far out of sync.
Tyler Menezes
www.TylerM.info
|
|
|
|
 |
|
|
 |
|
 |
"Have you read my other reply"
No, didn't see it and it wasn't in my email for some reason.
Feel free to upload it if you want. If you want to keep it closed-source that's cool, too. If you upload it as a separate project, however, be sure to link to this article - that's all I ask.
Additionally, if there's just a few really small changes, you could probably just submit the changes and I'll add a link to your reply in the article. As I mentioned, this is no longer supported as I plan to release a new version soon that has the same functionality as what it seems your changes have.
Tyler Menezes
www.TylerM.info
|
|
|
|
 |
|
 |
How/where did you get the background images for the forms?
Also, this is fantastic! I'm not using it, though, I'm making my own version.
|
|
|
|
 |
|
 |
Ok I tried to add this program to one of my programs but im getting this error
Error 13 Overload resolution failed because no accessible 'DateDiff' can be called without a narrowing conversion:
'Public Function DateDiff(Interval As String, Date1 As Object, Date2 As Object, [DayOfWeek As Microsoft.VisualBasic.FirstDayOfWeek = FirstDayOfWeek.Sunday], [WeekOfYear As Microsoft.VisualBasic.FirstWeekOfYear = FirstWeekOfYear.Jan1]) As Long': Argument matching parameter 'Interval' narrows from 'Microsoft.VisualBasic.DateInterval' to 'String'.
'Public Function DateDiff(Interval As Microsoft.VisualBasic.DateInterval, Date1 As Date, Date2 As Date, [DayOfWeek As Microsoft.VisualBasic.FirstDayOfWeek = FirstDayOfWeek.Sunday], [WeekOfYear As Microsoft.VisualBasic.FirstWeekOfYear = FirstWeekOfYear.Jan1]) As Long': Argument matching parameter 'Date1' narrows from 'String' to 'Date'.
on
Public Function DiffDate(ByVal OrigDay As String, ByVal OrigMonth As String, ByVal OrigYear As String)
Try
===[ Dim D1 = OrigDay & "/" & OrigMonth & "/" & OrigYear ]=== This is were the error takes me
Return DateDiff(DateInterval.Day, D1, DateTime.Now)
Catch
Return 0
End Try
End Function
how can i fix it?
modified on Saturday, May 31, 2008 7:26 PM
|
|
|
|
 |