C++/Win32: Menus
March 2, 2008
Let’s take a detour here and talk about menus. If you are new to Windows and you’re learning this all for the first time here, you have no doubt been rather impatient with me for taking so long to get to menus. After all, there’s hardly a Windows app out there that doesn’t have a menu, right? Read more
C++/Win32: Window Dressing
March 2, 2008
When you learn how to program, you are inevitably going to have to learn to program the way whichever author or teacher you are receiving your information from does. Nine lessons into this tutorial, you should be pretty aware of the way I program. Read more
C++/Win32: Threads
March 2, 2008
Recall that one of the problems our app has had is that when it’s scanning, you can’t do anything. You can’t move the window, which is annoying, and you can’t scroll through the results. You have to sit there and wait for the loop to finish out. The way around that is to do the actual scanning in a separate thread. Windows is, after all, built for multitasking, so not taking advantage of it makes no sense at all. Read more
C++/Win32: Skinning
March 2, 2008
At the end of this lesson, you’ll find a link to the flipcode site, where you can read a tutorial there on skinning. That document is brilliantly prepared, and goes into quite a bit of detail on the subject, so I highly recommend you read it. I will just cover the bare minimum you’ll need to get a skin up on top of your app. After finishing here, you’ll know how to apply rectangular, polygonal, or elliptical skins to your applications — or any combination of the three. The flipcode tutorial goes even further, providing a function to read in shape data from a bitmap file and apply any shape you want to your application. Fun stuff. Read more
C++/Win32: More GUI
March 2, 2008
Ok, now let’s work through the problem of making our output more meaningful. In particular, we would like to be able to show a list of results, rather than having every result overwrite the last one. Read more
C++/Win32: Port Scanning and Sockets
March 2, 2008
At this point, all the framework for this project is done. All that’s left is to actually make it do something. The first half of that is receiving the input from the user, and then checking it to make sure it’s valid. If it is, we’ll pass this info along to a function that actually does the scanning and outputs its results to our text box. If the data is invalid, for any number of reasons, we will pop up a message box saying so, and return to our idle state to wait for another button press. Read more
C++/Win32: Inheritance and Beginning GUI
March 2, 2008
Inheritance
Now we’ll see exactly how easy inheritance is. We are going to create a new class called PortScannerWindow, which publicly inherits from Win32WrapperClass. But first, we’ll need to change our private members of Win32WrapperClass to protected, so that the new class gets them too. This only requires changing private to protected in the class declaration in Win32WrapperClass.h Read more
C++/Win32: Creating a Win32 Window Wrapper Class II
March 2, 2008
Now to finish up what we started in part I. Let’s put the lid on our window wrapper class. Read more
C++/Win32: Creating a Win32 Window Wrapper Class I
March 2, 2008
One thing to keep in mind when coding against the Win32 API is that it was meant for C programming. This presents a couple problems when working in C++ and attempting to keep things as object oriented as possible. Read more
C++/Win32: Basic Window Creation
March 2, 2008
The first thing you need to do when creating a Windows application, obviously, is to create a window.This is the one subject that seems to be covered all over the place, so we’ll just go through it quickly. If you need more information on this subject, check out any of the links provided below, as they cover the topic in more depth. But it really is quite a simple procedure. Read more



