home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18569 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.5 KB

  1. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!spool.mu.edu!agate!doc.ic.ac.uk!uknet!ieunet!tcdcs!maths.tcd.ie!tim
  2. From: tim@maths.tcd.ie (Timothy Murphy)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: How can I change the menu in Think C?
  5. Keywords: Think_C menu
  6. Message-ID: <1992Nov18.022405.23698@maths.tcd.ie>
  7. Date: 18 Nov 92 02:24:05 GMT
  8. References: <1992Nov17.154800.470@maths.tcd.ie> <1992Nov17.191012.1079@nic.funet.fi>
  9. Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
  10. Lines: 42
  11.  
  12. asunta@convex.csc.FI (Miika Asunta) writes:
  13.  
  14. >tim@maths.tcd.ie (Timothy Murphy) writes:
  15.  
  16.  
  17. >>Anyone know why Think C (v5 under System 7)
  18. >>doesn't like this?
  19. >>It compiles but bombs out.
  20.  
  21. >>main()
  22. >>{
  23. >>    MenuHandle AppleMenu;
  24. >>    AppleMenu = GetMenu(1);
  25. >>    AddResMenu(AppleMenu, 'DRVR');
  26. >>}
  27.  
  28. >1) Where are MacInit-routines (InitGraf etc...)
  29.  
  30. >2) Do you have a resource file named project.pi.rsrc
  31.  
  32. >3) Application resource IDs should be >= 128
  33.  
  34. My apologies for an unpardonably careless question.
  35. I was actually trying to compile sublaunch.c
  36. from ftp.apple.com (dts/mac/sc/snippets).
  37. This is written for MPW C.
  38.  
  39. (1) The init() routines _were_ included;
  40.  
  41. (2) I hadn't created the required resource file.
  42. (I didn't realise that the given resource specification file
  43. had to be changed to RMaker format, and compiled.)
  44.  
  45. (3) The ID was actually 128 -- 1 was a typo.
  46.  
  47. Thanks to all who sent suggestions (mostly polite!).
  48.  
  49. -- 
  50. Timothy Murphy  
  51. e-mail: tim@maths.tcd.ie
  52. tel: +353-1-2842366
  53. s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
  54.