|
-
Dec 10th, 2009, 10:57 PM
#1
Thread Starter
Frenzied Member
Registration
I have grabbed some code of pscode http://www.planet-source-code.com/vb...48926&lngWId=1
What is good about this code is that it generates a key from the serial numbers on your cpu or your windows key.
However, I keep getting a negative value for the machineID (which doesnt work). How can i fix this?
Or, is there some good code out there to create a registration key to convert a trial application to a registered version?
thanks
Last edited by Simon Canning; Dec 10th, 2009 at 11:01 PM.
-
Dec 11th, 2009, 11:34 AM
#2
Re: Registration
Why not just take the negative value and convert it to a postive value by multiplying it times -1?
-
Dec 11th, 2009, 06:50 PM
#3
Addicted Member
Re: Registration
Better yet use ABS. absolute, which will turn the number into a positive number.
-
Dec 11th, 2009, 11:17 PM
#4
Addicted Member
-
Dec 11th, 2009, 11:39 PM
#5
Addicted Member
Re: Registration
Abs Function
Returns a value of the same type that is passed to it specifying the absolute value of a number.
Syntax
Abs(number)
The required numberargument can be any valid numeric expression. If number contains Null, Null is returned; if it is an uninitialized variable, zero is returned.
Remarks
The absolute value of a number is its unsigned magnitude. For example, ABS(-1) and ABS(1) both return 1.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|