Making Apps Is Generating Serial Numbers For Software Projects
Sep 12, 2009
Something ive wondered about as long as ive had an interest in making apps is generating serial numbers for software projects.Im wondering how is this done by the pro's so that someone can put a key into an app and without being connected to the net it knows the key is valid by using an algorythm.Id like to make something like that for the sake of learning how. I realise more and more programs now "call home" at the point of entering a key or to "activate" as with MS office and windows etc, but id like to start at the old school way of doing it.Generating the alpha numeric keys and also checking them.
I have devices with unique serial number (string incremetation) ex : AS1002 and AS1003. I need to figure out an algorithm to produce a unique activation key for each serial number. What would be the best approach for this ?
i have a few questions about generating random numbers:1) is it possible for the programme to generate a random number that it has previously generated (i.e could it produce the same number more than once?)2) can you specify what numbers to generate? e.g only whole numbers up to 1000?
I am working on an application, where I have already normalized the databases. Now I am creating an application in asp.net with vb.net as my code behind fine. These random numbers would be stored in the Id column. So, no way there would be repeating the keys. But my application could generate the key, which would probably get repeated. How would I check the database for, so that random numbers wont get repeated? is there any function? Could you give me the code for the same.
Why does it give exactly the same numbers despite different variables? See below code:Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim MyRand1, MyRand2, Myrand3 As New Random
How long it would take to generate all of the numbers between 1 and X randomly. X=1,000,000 took 6 seconds, and for 10,000,000 took over a minute. Does that sound reasonable?
Experiment stopwatch start count = 0 do while count < x select a random number between 1 and X inclusive have i selected this number before? no-add 1 to count yes - loop stopwatch stop display elapsed time
I made the Do Loop UI un-friendly and ran this from the IDE using CTRL-F5. My PC is 1.8Ghz and has 2GB of memory. I am using VB 2008, .Net 3.5 SP1. Looking for work - Zip 65101 [URL]
generating unique ids for invoices,customerids and employee ids, etc. and thought it would be great to share this as i will use it within my aps all the time now.[code]
I am using Visual Basics 2008 Express edition. I want my program that I am making to generate a random amount of numbers and letters in this form when I click Button1. WM9RX-GG6J2-4WKD9-FDJWM-TYH76 Is this possible?
Basically, what I've done is given the user four tabs to choose from. The main one is the dictionary which I've compiled, and the other three tabs link to online encyclopedias and dictionaries. However, what I want to do is make an app for each of these, because of the fact that the screen space I am giving the user is limited (499px x 254px), and I also believe that it will look more professional.
What I'm thinking of doing is putting the logo towards the top, and then:For Wikipedia, putting the title and picture at the top and breaking the article into show/hide sections like the mobile version For Wiktionary, putting the title at the top, and breaking it down into show/hide sections when applicable For Dictionary.com. putting the title at the top and showing the definitions (with linked pronunciations) underneath
Of course, I'll need it to automatically redirect itself to the webpage I need it to go to, because I don't want to type another 300,000 lines of code just to go to a website.
Possible Duplicate: x86/x64 CPUID in C# I need to retrieve CPU's serial numbers. When using WMI, it is called CPUID.My goal is to access that information WITHOUT using WMI. Unmanaged is code is fine?
I just found this amazing DLL that can extract the hardware ID (computer RAM, hard drive unique serial number, partition serial number, CPU unique serial number, etc) of a computer.
However, there is no documentation for VB users and it is written in Pascal and assembly language. Ya, sad
connect to this DLL?The documentation says that the DLL exports the following functions:
I have recently built a personal project but I forgott to finish some menu items and the application is only half done, as you can imagine from a developers point of view this is quite disapointing.
I could have rectified this if I new how to build applications that could be updated whenever I make changes.
My question is this:- can anyone please give me a basic run down on how to make my applications able to accept updates when changes are made ALSO how do I build applications with a 30 day lisence FINALLY can I write my own serial numbers or does Visual Studio create them automatically.
I wrote this sub routine that is running, but it only returns the local Computer name and Serial number. Any one know the why to grab the Computer name and serial by IP address? I am using VB 2010.
Searched High & Low to find a reliable way to get HDD real serial numbers in VB.NET. WMI method using Win32_PhysicalMedia, does not work reliably (I am administrator & using XP Pro & SATA drives)
I am making a application that you enter 3 number one for length, width, and height of a rectangle.It needs to display a picture showing all three.i am using windows form application to do this wil three text boxes to enter the numbers.
I made a form with a two text boxes for user input.A (lower bound) and an (upper bound), and then a text box to display all prime numbers in that range.I can't figure out what I am doing wrong, my error checking works properly but my math onlyreturns a true or false.
how to make the values in a text box accepts only letters in the text box for data that are for letters only and numbers for data requiring numbers only
[code]How i can make The Program to find Numbers On Form and Do That without making So Many "Same" Codes?Its Pretty Annoying To Make Big Program nad only Copying and Pasting Text.
I have an assignment that includes some extra credit point by making a calculate button take four numbers, add them together and give a commission. I know what I did works, but I just want to make sure I'm doing it right! Let me know if I did something wrong
[code]Private Sub calculateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calculateButton.Click
what WPF based apps are?Is it an application that runs under Silverlight? If so, how?I know; Windows Forms based apps,console apps,DLL _ Class Library Projectsand I've had an introduction to ASP.Net.What I mostly want to know is, if WPF apps are for Silverlight then do they also run in a server based fashion like anASP.NET website would when you create ASP.Net webpages?Is it a way of creating what looks like a FORMS BASED application but it runs in a browser instead or what?Please enlighten me a bit further as I have no idea what WPF is all about.
I made my program and now I just need to add in the serial and trial part of the application. I know the application must connect to the host and go to a txtfile. How would i do the trial and serial. Also If the serial is already activated I want the application to reject that Serial and Count how many times they entered in a wrong serial.
I have a stand alone VB.Net 2005 application that uses a serial port that generally stays open while the application runs on a Windows XP system. In trying to bullet-proof the UI, I ran into a problem when the USB to Serial Converter normally used to provide the serial port is disconnected while the serial port is open. In trying to handle the resulting error when accessing the port, I find I cannot close the port.
When trying to do so, the error message says something like "unable to close the port. You may not have sufficient permissions." Reconnecting the USB/Serial Converter does not reactivate the port.