home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / common / msdev98 / bin / ide / devgal.pkg / TEMPLATE / 22351 < prev   
Encoding:
Text File  |  1998-06-18  |  1.8 KB  |  46 lines

  1. // TODO: 
  2. //    1. Changes to the 'BNDL' resource:
  3. //        a. Verify the application signature.  If it is correct as
  4. //            created elsewhere, leave it alone.  If it needs to
  5. //            match the document ID for this document, change it to
  6. //            be $$VAL:MacType$$.
  7. //        b. Add $$VAL:TemplateID$$ to the list for both the 'ICN#'
  8. //            and 'FREF' parts of the 'BNDL' resource.  The lists for
  9. //            both these sections should match.  They consist, in order,
  10. //            of the IDs for the frame windows and views for your 
  11. //            application (see resource.h if they look like unadorned
  12. //            numbers to see which is which).  If you are removing a view 
  13. //            to make room for the one you just added, be sure to take it
  14. //            out here.  (Keep the sequence numbers before the IDs in order
  15. //            as well.)
  16. //    2. Declaring this document:
  17. //        a. You will need some code that looks something like this (minus
  18. //            the '//' at the start):
  19. //
  20. //resource 'FREF' ($$VAL:TemplateID$$, purgeable)    // my new document
  21. //{
  22. //    '$$VAL:MacType$$', SEQ,
  23. //    ""
  24. //};
  25. //            where 'SEQ' is the same number you put in the 'BNDL' resource
  26. //            when you added the new view and 'my new document' should be
  27. //            replaced with something more meaningful for your application
  28. //
  29. //        b. If you are changing the application signature, you will need 
  30. //            some code that looks pretty much like this (minus the '//' 
  31. //            at the start):
  32. //
  33. //type '$$VAL:MacType$$' as 'STR ';
  34. //
  35. //resource '$$VAL:MacType$$' (0, purgeable)
  36. //{
  37. //    "My Application"
  38. //};
  39. //
  40. //            where 'My Application' should be replaced with something
  41. //            more meaningful for your application.
  42. //
  43. //    3. If you are changing the application's signature, you will also
  44. //        need to change the Mac File Creator to match.  (Build Settings
  45. //        dialog, Link tab, code generation settings)
  46.