I made a project (exe). I want when a user use it , after 6 month or 1 year it will expired. I mean the exe is use for 1 year. after 1 year it will show a msg. like: demo version for 1 year. contact with author.
abu taher
34
Practically a Posting Shark
Recommended Answers
Jump to PostFor the most simplistic version you could check the creation date of some file you created against the now function, do a date diff based on "d" (day) and if >= 365 display message/shutdown program. However, user could get around this by resetting the date time on the machine. Same …
Jump to PostType in datediff and press F1 and do the same for Open, SaveSetting, GetSetting, and then search the web for examples on the API's CreateFile and GetFileTime.
Good Luck
Jump to Postput the date constant inside your code.
CONST dateExpired = "2010-APR-13";
everytime your program runs....detect the user computer time now();
then do the comparison if dateExpired > now() okay if not...create an error.
Jump to Postrm_daniweb
if you don't mind please modify the code what write by crackerjacker .Private Sub Form_Load()
Dim ExpiryDate As Date
ExpiryDate = "14-04-2009" 'your program expiration date
If Now() > ExpiryDate Then MsgBox "THIS PROGRAM EXPIRED": Exit Sub Else MsgBox "CONTINUE..."
End Subthis will detect the system …
Jump to Postcan you give me more details
I know you know how to open files and append, delete content on it.
OPEN "MYLIB.DLL" FOR BINARY AS #1
[APPEND/DELETE]
WRITE # OR LINE INPUT# OR INPUT #
CLOSEyour dll or ocx was modified so it will not work anymore.
…
All 19 Replies
vb5prgrmr
143
Posting Virtuoso
abu taher
34
Practically a Posting Shark
vb5prgrmr
143
Posting Virtuoso
crackerjacker
-2
Junior Poster in Training
abu taher
34
Practically a Posting Shark
crackerjacker
-2
Junior Poster in Training
abu taher
34
Practically a Posting Shark
rm_daniweb
3
Junior Poster
abu taher
34
Practically a Posting Shark
rm_daniweb
3
Junior Poster
abu taher
34
Practically a Posting Shark
rm_daniweb
3
Junior Poster
abu taher
34
Practically a Posting Shark
rm_daniweb
3
Junior Poster
Jupiter 2
0
Posting Whiz
abu taher
34
Practically a Posting Shark
Jupiter 2
0
Posting Whiz
Jupiter 2
0
Posting Whiz
abu taher
34
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.