C++/Win32: Printing
March 2, 2008
Printing in Windows is a pretty simple task — if you know the GDI functions. Since this tutorial doesn’t (yet) cover the GDI in any great depth, you might want to read up on the GDI elsewhere. We have, however, seen enough of the GDI — namely, the TextOut function — to print the simple text our display box is showing. So that’s what we’ll do for now. Read more
C++/Win32: Dialogs
March 2, 2008
Dialogs are wonderful things because they are easy to create, and contain some default behavior that you can avoid coding on your own. They are especially useful for retrieving input from the user. Read more
C++/Win32: DNS Resolution
March 2, 2008
This is another mercifully short lesson. We are now going to fix the one gripe I had with our port scanner about 7 lessons back: it doesn’t resolve DNS. Read more
C++/Win32: Polishing the GUI
March 2, 2008
This is going to be the shortest lesson of them all, because I’m not going to go into much detail about what I’m changing in the code. You should by now be quite familiar with the code — familiar enough that you should be able to recognize and understand the changes made to it in this lesson. Read more
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





