I've installed Think C 5.0, in the hopes that it will be easier than Codewarrior 6 to make software that works on super ancient Macs. I remember using TC5 like 25 years ago, but I've forgotten... everything.
First dumb question - how do you add resources to a project? The "Add sources" menu item only seems to work for .c files and libraries. A quick check of the demo projects looks like they all create resources programmatically, and don't use resource files.
I found the answer right here, from a post bbraun made three years ago:
However, for applications, THINK C is pretty easy. Although I'm still trying to figure out how to effectively use THINK C with Resedit created resources. It wants to compile resources from the Rez specification language rather than merge
in pre-compiled resources generated with something like Resedit. Additionally, when compiling an application, THINK will overwrite the target rather than merge in the compiled resources. So after every build, you'll need to copy & paste in
your precompiled resources by hand.
Yeah, kind of a hassle. I've been meaning to get to Rez anyway since that's what MPW likes to use too, but it seems like for some resource types like DITL and some of the window and dialog box things, it'd be easier to use ResEdit and have the resources merged in. I have a feeling if I used THINK very much, I'd have a separate program or applescript or something to merge resources after compilation.
Another thing that just came back to me is how relieved I was to finally have an IDE that treated resource files as first-class citizens (alongside, say, C files). I don't remember if that was a later iteration of THINK C or if it was CodeWarrior. Probably both did it eventually, but obviously I saw one or the other first.