Problem with MENU resource in Think C 6

I know CodeWarrior is supposed to be better than Think C - but I have Think C and I have the manuals. But…

…I have an odd problem that I haven’t seen before, and it’s been a while since I last used Think C and I’m clearly forgetting something…

…When I try to build my application, the MENU ids in the rsrc file apparently conflict with… something. Although I’ll be damned if I can work out what, because whatever it is it isn’t in my code. Does anyone have any thoughts?
 
What do you mean conflict with? What message or behaviour are you actually seeing? What do the MENU resources in the built application look like? (Look in ResEdit)
 
Not 100% sure about THINK C, but is the debugger turned on?
If so, I kinda remember something about it having it's own menus that it can insert into the menu bar for that purpose that might use some of IDs you're using? (wild guess). Maybe try moving your IDs to something astronomical, like 300+ to test?
 
@VMSZealot When you compile or build/run, THINK C creates its own resource file with the same name as your project. Usually it'll update it if you make changes to your primary resource file, but I've run into an occasional bug where it doesn't (then it complains there are duplicates.) Try deleting the resource file THINK C created so only your primary resource file is in the project folder, then update and build/run.

Also, if a all else fails, make a new project and re-import all your files. THINK C will occasionally corrupt the project file.
 
Ahh - thanks for this advice. I haven’t seen an rsrc file create by Think C - where would it have put it? I couldn’t see one by Think C in my project folder. Also, if I build without my resource file then the resultant application contains no MENUs - which is surely at odds with Think C creating a resource file?
 
Not 100% sure about THINK C, but is the debugger turned on?
If so, I kinda remember something about it having its own menus that it can insert into the menu bar for that purpose that might use some of IDs you're using? (wild guess). Maybe try moving your IDs to something astronomical, like 300+ to test?
At this stage, the debugger isn’t on - and I tried the astronomical ID trick already. It just resulted in the reported conflict being with the new numbers that I created. A clue perhaps?
 
What do you mean conflict with? What message or behaviour are you actually seeing? What do the MENU resources in the built application look like? (Look in ResEdit)
There is no built application. The build fails. And if I omit my rsrc file then the build succeeds - but with no MENUs resources in the application bundle. I can’t remember the exact error reported either (and it’s too later for me to turn on my old Mac now!) - but I’ll let you know tomorrow.
 
Back
Top