I am attempting to work through the examples in Macintosh C Programming Primer Vol. 1 Second Edition by Dave Mark and Cartwright Reed using Think C 6.0.1. I'm running into some issues with the code. While looking for answers I ran across this article in MacTech by Dave Mark. Odds and Ends - Universal headers and code building under THINK & CodeWarrior for 68K and PowerPC.
We may need to consider updating the examples from this book to ensure they work for beginners or they may get frustrated trying to follow along. I really like how the examples are done and the explanation in this book and would like to continue using it. Unfortunately, there are no newer versions of the book.
http://preserve.mactech.com/articles/mactech/Vol.10/10.08/OddsandEnds/index.html
Seems like every time Symantec comes out with a new version of their C compiler, I end up having to make a bunch of changes to my source code.
In writing a book, that can be a real pain, since I have no way of getting the source code changes to the people who have already purchased the book and then upgrade their compiler. Bottom line, if you know someone who has a copy of the Primer, please pass this column along to them. Better yet, help support MacTech and tell them to get a subscription...
When I moved my code from THINK 5 to THINK 6, I ended up adding a bunch of typecasts to various Toolbox routines, casting the parameters so they matched the function prototypes in the Toolbox include files. Adding the typecasts was a pain, but it definitely made my code much better.
THINK 7 kept the strict type checking imposed by THINK 6. Much more importantly, THINK 7 replaced the THINK 6 Toolbox include files with Apple’s standardized universal headers.
We may need to consider updating the examples from this book to ensure they work for beginners or they may get frustrated trying to follow along. I really like how the examples are done and the explanation in this book and would like to continue using it. Unfortunately, there are no newer versions of the book.
http://preserve.mactech.com/articles/mactech/Vol.10/10.08/OddsandEnds/index.html
Seems like every time Symantec comes out with a new version of their C compiler, I end up having to make a bunch of changes to my source code.
In writing a book, that can be a real pain, since I have no way of getting the source code changes to the people who have already purchased the book and then upgrade their compiler. Bottom line, if you know someone who has a copy of the Primer, please pass this column along to them. Better yet, help support MacTech and tell them to get a subscription...
When I moved my code from THINK 5 to THINK 6, I ended up adding a bunch of typecasts to various Toolbox routines, casting the parameters so they matched the function prototypes in the Toolbox include files. Adding the typecasts was a pain, but it definitely made my code much better.
THINK 7 kept the strict type checking imposed by THINK 6. Much more importantly, THINK 7 replaced the THINK 6 Toolbox include files with Apple’s standardized universal headers.