Results 1 to 5 of 5

Thread: Registration

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2008
    Posts
    1,260

    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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Registration

    Why not just take the negative value and convert it to a postive value by multiplying it times -1?

  3. #3
    Addicted Member
    Join Date
    Jul 2007
    Posts
    228

    Re: Registration

    Better yet use ABS. absolute, which will turn the number into a positive number.

  4. #4
    Addicted Member
    Join Date
    Aug 2008
    Posts
    136

    Re: Registration

    what is ABS?

  5. #5
    Addicted Member
    Join Date
    Jul 2007
    Posts
    228

    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
  •  



Click Here to Expand Forum to Full Width