Petzold's Programming Windows 95 Guide
Okay, is this book still applicable?
Printable View
Petzold's Programming Windows 95 Guide
Okay, is this book still applicable?
YES very much so.
Good for a start into the WIN32 API but lacks basic C eg Mem allocs. If you know C/C++ it will give a good start on the API.
Get a copy of the CD to try.
FYI Programming Windows 5th edtion would be better.
I am new to Windows programming and I purchased this book (5th Edition) about a week ago and I am loving it already. It teaches really well.
> Good for a start into the WIN32 API but lacks basic C eg Mem allocs.
This is true. I don't think it is a bad thing though. Charles Petzold says in the introduction that this book assumes three things: You have a good understanding of C (especially structs and pointers), that you know how to use Windows (the OS), and one other thing (can't quite remember). It isn't a book to teach you C, but Windows programming in C.
Well, anyway, a week after starting (6 days, actually), I've already learned to set the window class, register the window, create it, and show it. And receive messages with the window's WndProc and do the appropriate actions. I love this book!
--Garfield
But in WIN32 API you don't use malloc realloc ect.
Use GlobalAlloc(), GlobalLock(), GlobalHandle() and GlobalFree() (creating pointers or handles to mem blocks).
None of these functions are explained.
> But in WIN32 API you don't use malloc realloc ect.
Why not? Allocating is allocating no matter how you put it.
--Garfield