home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18526 < prev    next >
Encoding:
Text File  |  1992-11-17  |  716 b   |  29 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!ieunet!tcdcs!maths.tcd.ie!tim
  3. From: tim@maths.tcd.ie (Timothy Murphy)
  4. Subject: How can I change the menu in Think C?
  5. Message-ID: <1992Nov17.154800.470@maths.tcd.ie>
  6. Summary: Why doesn't AddResMenu() work?
  7. Keywords: Think_C menu
  8. Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
  9. Date: Tue, 17 Nov 1992 15:48:00 GMT
  10. Lines: 17
  11.  
  12.  
  13. Anyone know why Think C (v5 under System 7)
  14. doesn't like this?
  15. It compiles but bombs out.
  16.  
  17. main()
  18. {
  19.     MenuHandle AppleMenu;
  20.     AppleMenu = GetMenu(1);
  21.     AddResMenu(AppleMenu, 'DRVR');
  22. }
  23.  
  24. -- 
  25. Timothy Murphy  
  26. e-mail: tim@maths.tcd.ie
  27. tel: +353-1-2842366
  28. s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
  29.