A Norwegian introduction to C++ programming (in Windows)

I’m a compulsive writer, I admit. So, when testing Visual C++ 10.0, via Microsoft’s free Visual C++ Express IDE, I wrote about it. In Norwegian!

Maybe it’ll be a book. Anyway, I always write as if it’s going to be a book! I’m an incorrigible optimist!

It’s at Google Docs, in PDF format, 2 chapters so far:

Introduksjon til C++-programmering (Windows)

Each file has a nice table of contents but for that you need to download the PDF and view it in e.g. Foxit or Adobe Acrobat. Ch 1 is just 1 page, though. Ch 2 is more pages.

[Update, 4th of August: I’ve now added chapter 3, “Et første subsett av C++”. It’s great. :-)]

Comments very welcome!

Even if your name is Olve Maudal, say! 🙂


[cppx] B true, or B thrown! (Using the >> throwing pattern)

How often have you declared a variable and invented an ungrokkable three-letter name for that variable, just to temporarily hold the result of some API function so that you can check it immediately after the call? Let me guess, you’ve done that thousands of times. And if so then here are happy tidings: you can completely avoid introducing all those helper variables! 🙂

[… More] Read all of this posting →

Microsoft “Genuine Advantage”

Microsoft Security had finally had enough of being thwarted in its efforts to protect me. So, you’re not voluntarily running Windows Update? Hah, I’ll do it for you!

It may seem odd that I’ve been turning off Windows Update. As any security minded person knows, it’s very important, at least for the ordinary computer user, to have the very latest updates installed, so as to plug those zero-day entry vectors etc. However, I have an old computer, and Windows Update brings it to its knees for hours per day, even at the lowest possible level of activity. It does that by allocating huge amounts of virtual memory, plus something that I don’t know but that isn’t shown in Task Manager. In theory the virtual allocs shouldn’t matter for performance, as long as the working set is small, but Windows is decidedly not a quality OS, it’s the Volkswagen variant of an OS, so, my computer is completely and utterly unusable with Windows Update. My intention was to update directly from the Microsoft Update web site, I thought that was what it was for. However, they’d “fixed” their site that so that it couldn’t be used without turning on all of the Windows Update stuff (and what’s the point of the web site then? Jeez).

Anyway, I let Windows Update have its way. This took 8 hours, including restarts. Windows Update really sucks.

And what was the result? Well it had installed Microsoft Genuine Advantage for Office. And the “advantage” is that every time I start Word I now get the following nag-box (what an advantage!):

And since my Office installation has been activated not just once but at least twice and perhaps already three times (since “forgetting” that it’s activated is a common problem with Microsoft software), when I choose [Help → Register product…] I get:

Genuine Advantage my ass!

Addendum, the day after, NO SOUND: I now discovered that my computer has become very silent. It seems that every Microsoft update not only messes things up thoroughly and changes settings willy-nilly (it’s not your computer, it’s ours!), but also destroys something, like openfiles or netstat or ftype or whatever — the netstat thing was actually documented, it’s almost as if they’re proud of it. Attempting to open the volume control now produced a message that I have “no mixers”:

The advice offered in the box is just to make naive computer users waste some hours or days before, desperate, shelving out good $$$ to upgrade to a newer Windows version. Or, I think that is the purpose of misleading people like that. It positively lies. So I googled for others having had the same problem, found, of course, and it turned out that the Windows Audio service was stopped. Since the service was set on Automatic that should not have mattered, and it should have been running. But starting it fixed the problem, at least until it stops again! Argh! I don’t have words! At least none that I can put on the blog!