C++ is not fun
August 14th, 2008It’s horrible, in fact. So you’re trying to do something simple, like mute the windows volume using C++. You know that this isn’t going to be in the core libraries obviously, so logic dictates it’ll be in WINAPI or .NET somewhere, so you go to MSDN and read about it.
You find 2 ways of doing it. One way only works on Vista, the other doesn’t work on Vista. So you have to impliment these two ways of doing it. The non-Vista route requires over 9000 lines of code, and the Vista version, too, requires over 9000 lines of code. To mute your system sound volume.
Why the fuck isn’t there a setVolume(newvolume); function that works with just a line of code? Cross-platform?
Anyway, if I do manage to get it to work, I’ll be sure to write exactly how: MSDN is bollocks due to not having any example code so you’ve got to google everything, and you get over 9000 of these “EXPERT FORUMS LOL” sites where you pay over £9000 a month to read solutions to the problem you’ve been having.
Anyway, I’m writing a sleeper timer/alarm clock app. I know such things exist already, but none are exactly what I want for various reasons, so I figured it shouldn’t be too hard to just write my own.
I love VC++’s GUI editor, it’s like Visual Basic’s but not in noob-mode, and it allows you to define shit in your code which for some reason you can’t do in my school’s utterly abysmal choice of Visual Basic 6 that they teach in the computing department. But anyway, here’s my GUI so far. It’s designed to be as simple as possible, and I’ve yet to impliment the alarm clock functionality into the GUI, just the sleeper stuff.
