home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12863 < prev    next >
Encoding:
Text File  |  1992-07-22  |  2.2 KB  |  46 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gumby!kzoo!k044477
  3. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  4. Subject: Re: how to put indelible serial# in resource fork of app?
  5. Message-ID: <1992Jul22.202036.3577@hobbes.kzoo.edu>
  6. Keywords: serial#
  7. Organization: Kalamazoo College
  8. References: <Jul.20.17.18.21.1992.16265@gandalf.rutgers.edu> <1992Jul20.232738.21376@hobbes.kzoo.edu> <Jul.22.14.59.09.1992.6438@gandalf.rutgers.edu>
  9. Date: Wed, 22 Jul 1992 20:20:36 GMT
  10. Lines: 34
  11.  
  12. rgonzal@gandalf.rutgers.edu (Ralph Gonzalez) writes:
  13. >
  14. >Also, it appears to be a good idea to have the user enter their name
  15. >the first time they run the program, and display it in the startup
  16. >screen after that.  This helps "shame" non-registered users.
  17. >
  18. >QUESTION 1:  Is it ok to store this name in the application's own
  19. >resource fork?
  20.  
  21. Try the data fork.  When your app starts, check the data fork to see if
  22. name/company info is there.  If not, try opening your data fork with
  23. fsRdWrPerm.  If you can, request the name/company from the user and
  24. write it in.  If you get a wPrErr or an accessDenied error, you may be
  25. on a CD-ROM, a locked floppy, or a server with read-only access;
  26. no sweat, don't do anything.  If you get an fLckdErr, the file
  27. is locked--tell the user to unlock the app for registration purposes and
  28. ExitToShell.  That way, users can't defeat annoying registration notices
  29. by just locking your app.  If they want to run off a locked floppy or a
  30. read-only folder on a server, then they're obviously quite dedicated to
  31. not seeing that annoying registration, and you won't stop them anyway.
  32. :-)
  33.  
  34. Don't sweat this too much.  If people want to steal your program, they
  35. will, and there's nothing you can do about it.  Don't spend too much
  36. time worrying about it, and don't annoy legitimate users with whatever
  37. scheme you do implement.
  38.  
  39. By the way, a good scheme mentioned in AppleDirect once is:  make a menu
  40. item that creates a demo copy of your app.  Then when someone asks a
  41. customer for a copy, s/he can say "sure" and quickly make a sample.
  42. -- 
  43.  Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
  44.  He let the contents of the bottle do the thinking
  45.  Can't shake the devil's hand and say you're only kidding            - TMBG
  46.