The following code I use with Visual Basic Professional 3.0. This procedure reads a INI file and looks for two entries, 'UserName' and 'UserNumber'. If they are existing UserName will be recalculated by the same routine it was created and compared to UserNumber. If they are right, a program may goes on. In case of wrong or absent entries the routine will detect this and the program may show a reminder screen or anything else. I use this routine in my shareware programs. The user may register by entering his name and a number that must be created by the author of the program. For this purposes I wrote an own routine (in a separate program!) that uses the same procedure as the controlling code in the main program:

Click HERE to read entire tip.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish