home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / FakeStart 1.0 / Read Me FakeStart.c < prev    next >
Encoding:
Text File  |  1996-05-01  |  3.0 KB  |  59 lines  |  [TEXT/CWIE]

  1. /***********     All about FakeStart
  2.                 -------------------
  3.  
  4. By agreement between Ken Earle and ingSOFT Ltd (Toronto Canada), all source code for
  5. FakeStart is released into the public domain.
  6.  
  7. "FakeStart.µ" builds a small application whose only purpose is to launch some other
  8. application (the "real" application) into low memory. Some older applications still
  9. run on modern Macs, provided they aren't launched too high in memory.
  10.  
  11. You'll like this app if you have an old application that still runs, but only if you
  12. start up enough other applications first to force that old one to be launched into
  13. relatively low memory. This little starter app will launch it low in one step, and
  14. leave all other system memory free.
  15.  
  16. To produce a small "fake starter" that starts your application low in memory:
  17. • change the STR# 1001 string 1 resource in "FakeStart.rsrc" to the creator
  18.     of your application (the shipped creator is 'JAGO', for an application
  19.     called "RFDesigner™")
  20. • in the CodeWarrior project preferences, change the name of the final
  21.     application to something more appropriate, eg if you intend to
  22.     launch "Surfer" then change the name to something like "Surfer Starter"
  23. • use CodeWarrior ( >= CW7 ) to build your little starter application.
  24.     (Porting to Symantec C should be easy, or even MPW for that matter.) 
  25.  
  26.  
  27. To change the limit on how high into memory your real application can be launched: in
  28. the file "FS_Memory.c", this limit is set by "APPLICATION_LIMIT". This constant is
  29. #defined near the top of the file, and used in only one place in the file. It
  30. determines the upper limit for the application, more precisely it sets the upper
  31. limit for the address of the application PLUS the size of the application. In other
  32. words in won't let any address in the application's heap go above that number. The
  33. preset value for APPLICATION_LIMIT is "ABOUT_THIRTEEN_MEG", which is a safe number.
  34.  
  35. Are you sure that the old application you want to start accepts the basic four
  36. AppleEvents correctly? If so, open up "FakeStart.h" and change
  37.     #define APP_IS_AE_AWARE            FALSE
  38. to
  39.     #define APP_IS_AE_AWARE            TRUE
  40. build your starter, and try it out by dragging a document onto it.
  41.  
  42. Things are kept simple. You can drag any files you want onto the little starter app,
  43. but only files with the same creator as your real application will be opened. If you
  44. just double-click on the starter, it will start up your real application.
  45.  
  46. In all cases the starter will launch your real application into low memory. With some
  47. systems this will confuse your "About this Macintosh" box so that free memory is
  48. reported as lower than what is actually available. This is a problem only with the
  49. Finder's "About" box, and your full memory will still be available for other
  50. applications.
  51.  
  52. (Plug) Source for "FakeStart" was created and prettied up with EnterAct™, among the
  53. world's best C/C++ editors, and certainly the cheapest. Available on the Internet,
  54. and on CompuServe (GO MACDEV, library 13).
  55.  
  56. Questions and comments are invited, please send them to
  57. 73073.2166@compuserve.com
  58. (Ken Earle)
  59. ************/