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.
 
Back
Top