Monthly Archives: January 2023

Crossing the bridge

Although I am not entirely happy with the book on MFC programming, I have sufficiently figured out how to direct the compiler so that I can actually compile and test programs. To some extent, this follows the same general order and structure of Petzold’s book. It may take a while before I get to the subjects I am most interested in. The book by Roger Mayne is moving faster and less thoroughly. I had set Petzold aside, but I an picking it up again.

I have also gone back to the beginning with BASIC. It’s absurd that it’s so complicated to “enter a number”, in Windows, unless you know exactly how. Like many things, it’s apparently fairly easy once you now how…but it’s not so easy for a novice to figure out how. I now have a BASIC emulator, so I can go back over instructional code and early games. Some of these could be improved and ported to C and other languages. I’m sure this has already been done, but not by me. As I work through examples, I hope to improve my programming skill. It;s a slow method, but it works for me.

Van Winkle’s Bridge

I had a miserable holiday season. I was busy trying the Rip Van Winkle approach to learning programming, and not accomplishing much. The further I got in to Petzold, the more the behavior of programs diverged from what was described in the text. The programs would compile….but they wouldn’t work. The C language, the compilers (Visual Developer) and Windows itself have all changed since 1999, and the preconditions and and postconditions for Windows function calls that worked in the original, and those that apply now have changed in ways that I don’t have the resources to follow. And that’s if I haven’t committed any typos in entering the programs.

Although many beginning programmer’s texts start with a command-line approach, they don’t facilitate a transition to the Windows environment. I’ve finally found one that does: “Introduction to Windows and Graphics Programming With Visual C++”. by Roger Mayne. This looks like the bridge I have been looking for.

We’ll see how this goes.