home *** CD-ROM | disk | FTP | other *** search
- 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
- From: tim@maths.tcd.ie (Timothy Murphy)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: How can I change the menu in Think C?
- Keywords: Think_C menu
- Message-ID: <1992Nov18.022405.23698@maths.tcd.ie>
- Date: 18 Nov 92 02:24:05 GMT
- References: <1992Nov17.154800.470@maths.tcd.ie> <1992Nov17.191012.1079@nic.funet.fi>
- Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
- Lines: 42
-
- asunta@convex.csc.FI (Miika Asunta) writes:
-
- >tim@maths.tcd.ie (Timothy Murphy) writes:
-
-
- >>Anyone know why Think C (v5 under System 7)
- >>doesn't like this?
- >>It compiles but bombs out.
-
- >>main()
- >>{
- >> MenuHandle AppleMenu;
- >> AppleMenu = GetMenu(1);
- >> AddResMenu(AppleMenu, 'DRVR');
- >>}
-
- >1) Where are MacInit-routines (InitGraf etc...)
-
- >2) Do you have a resource file named project.pi.rsrc
-
- >3) Application resource IDs should be >= 128
-
- My apologies for an unpardonably careless question.
- I was actually trying to compile sublaunch.c
- from ftp.apple.com (dts/mac/sc/snippets).
- This is written for MPW C.
-
- (1) The init() routines _were_ included;
-
- (2) I hadn't created the required resource file.
- (I didn't realise that the given resource specification file
- had to be changed to RMaker format, and compiled.)
-
- (3) The ID was actually 128 -- 1 was a typo.
-
- Thanks to all who sent suggestions (mostly polite!).
-
- --
- Timothy Murphy
- e-mail: tim@maths.tcd.ie
- tel: +353-1-2842366
- s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
-