 |
|
 |
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1617
|
Re: Making A Demo Version
Normally companies hide the date (in some non-date looking format, and with no real clue as to the company or software) in the registry, and just make sure not to delete it when it's uninstalled.
There's also different ways of making a demo, that doesn't apply to every type of program:
1) some features not enabled
2) every feature enabled, but with restrictions (ie: titles of under 10 characters for an inventory system, "DEMO" being written with any reports across everything, only page 1 of multi-page reports being shown)
3) DB and related: only return top x or top x% results, or pick random values from the table. Only have write access to some tables that otherwise would be read/write.
Regardless, it's easier and not possible to bypass. Any registry thing is (especially since some tools exist that can see which keys are added, or they can restore the old registry from before your install).
[Edited by JLRodgers on 17-05-2003 at 10:45 PM GMT]
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
17-05-2003 at 07:35 PM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1617
|
Re: Making A Demo Version
I wouldn't delete the records, well not if the user themself entered them (they couldn't import the records into the full version). If the records aren't entered by the user, then it wouldn't really matter (then just take x start records/# days to allow, and delete that many records per day/use).
You'll want to store the date into the registry probably (just have it somewhat hidden [not under the normal place your software's stored]). It'd be the only thing that's consistant (or just store a small text file in the windows directory that has the date if install in it->created upon first run).
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
19-05-2003 at 06:09 AM |
|
|
noycez Level: VB Guru

 Registered: 14-10-2002 Posts: 79
|
Re: Making A Demo Version
i don't know where i got this code but you can use this in your codes:
PUTTING REGISTRATION TO YOUR APPLCIATION
Function RegisterCall(FRM As Form)
'Put this code under the load section of a FORM
Dim RetValue
RetValue = GetSetting("R", "0", "RegRunCount")
GD$ = Val(RetValue) + 1
SaveSetting "R", "0", "RegRunCount", GD$
If GD$ > 3 Then
MsgBox "The Evaluation Period of This Program Has EXPIRED. Please Register This Software."
Unload FRM
End If
End Function
COUNTS HOW MANY TIMES YOUR PROGRAM RUNS
Private Sub Form1_Load()
SaveSetting "Project1", "StartupForm", "TimesRun", GetSetting("Project1", "StartupForm", "TimesRun", 0) + 1
TimesRun = GetSetting("Project1", "StartupForm", "TimesRun")
End Sub
CREATE TRIAL VERSION
Make two text boxes in the from and name it as
text1 & text2
text2 is hidden or its visibilty property is set to false
code:
Private Sub Form_Load()
text2.Text = GetSetting("trial", "time", "used", "")
Text1.Text = text2.Text + 1
SaveSetting "trial", "time", "used", Text1.Text
____________________________
Funny thought:
Practice makes perfect.....
But nobody's perfect......
so why practice?
|
|
20-05-2003 at 06:49 AM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1617
|
Re: Making A Demo Version
What's returned is based on how you retrieve the info, manually (non-VB's built in) would be an error, VB is null I believe.
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
20-05-2003 at 07:31 PM |
|
|
|
|
 |
 |