home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 12
/
CD_ASCQ_12_0294.iso
/
vrac
/
seriz10.zip
/
DEMO.BAS
next >
Wrap
BASIC Source File
|
1994-01-18
|
2KB
|
68 lines
'SerialIze Demo Application v1.0
'Copyright (C) 1992-94 Nicolas Enterprises
'
REM $INCLUDE: 'C:\QB45\SERIALIZ.BI'
CONST Version$ = "1.0"
CONST CompDate$ = "01/18/94"
CONST ProgName$ = "SerialIze Demo"
TrapSpec$ = "C:\QB45\DEMO.BAS"
IF INSTR(COMMAND$, "/VER") THEN
PRINT " Program: "; ProgName$
PRINT " Version: "; Version$
PRINT "Compiled: "; CompDate$
END
END IF
CLS
PRINT ProgName$; " v"; Version$; TAB(23); CompDate$; TAB(34); "Copyright (C) 1992-94 by Nicolas Enterprises"
PRINT TAB(34); "All rights reserved"
PRINT
' This prints the program header on the screen.
CALL GetRegInfo(UName$, Serial$, RegNum$, TrapSpec$)
' This retrieved the registration info from the executable.
CALL CalcRegNum(UName$, Serial$, RegNum$, NoReg%)
' Now the registration info is calculated.
Commd$ = LTRIM$(RTRIM$(COMMAND$))
IF Commd$ = "/REG" THEN
CALL PutRegNo(TrapSpec$)
END IF
' You can have your own way of getting to the PutRegNo Subroutine. This
' is a simple way. If the user includes /REG on the command line then we
' allow the user to register the program. The PutRegNo handles its own data
' input, future versions may let the programmer do this.
IF NoReg% = -1 THEN
PRINT "UNREGISTERED USER OF APPLICATION"
END IF
IF NoReg% = 0 THEN
PRINT "User Name - "; UName$
PRINT "Serial # - "; Serial$
PRINT
PRINT "Thank you for Registering"
END IF
' If NoReg% is -1 the the program in UNREGISTERED. If NoReg% is 0 then
' the program is registered. You can check this latter to disable features,
' have a thank you message. You might also want a BEG screen.
END