Top

PHP Scripting in Win32 Apps

March 22, 2008

This is a repost of something I put together a couple years ago, and as such it may be out of date. There are much better ways to add scripting support to your apps these days, but if you are dead-set on using PHP, this may help you do it.

In order to use the cli version of php for scripting in your win32 app, you’ll need to connect your app to PHP, send it PHP code, and read the processed output. Read more

C++/Win32: Context Menus

March 2, 2008

Context menus are the little popup menus that appear when you right-click on certain areas in an application. They’re called context menus because the menu and/or menu options you see depend on the context. If you right-click in an edit box, for example, you might get options to cut, paste, copy, clear, etc. If you right-click on a list view, in the same application, you might be presented with options to sort the list. Read more

C++/Win32: Sounds

March 2, 2008

This might be the shortest lesson of all. All I want to do here is play a sound. Why? Well in the cast of a port scanner, the user is probably looking for open ports on a system. The majority of the ports scanned will be closed, and he/she might be looking over 8000 ports for the few that will be open. The user might better occupy his time doing something, anything, besides staring at our application. So a sound alert might be a nice option. Read more

C++/Win32: List Views

March 2, 2008

At this point, we’ve done a lot. Over the past sixteen lessons, we’ve made our app do what it’s supposed to do, and just recently we made it print and save its output. For some strange reason, we’re still not completely bored and over this thing, so we’re trying to figure out how to make it better. Read more

C++/Win32: Working With Files

March 2, 2008

If you’ve made it this far, you’ve been introduced to some pretty hectic stuff. The nice thing about that is that by comparison, working with files is going to seem ridiculously easy. And part of that is because Microsoft has done a lot of the hard work for you. And why shouldn’t they? Almost every program you use works with files in one way or another. Read more

C++/Win32: The System Tray and Balloon Tips

March 2, 2008

Good news! We are going to again break away from the standard Win32 stuff and explore something fun. Actually, two fun things: minimizing to the system tray, and creating balloon tips. Balloons are those little comic book style dialog bubbles that popup in the lower right of the screen telling you information you don’t necessarily need to react to (”There are updates ready to be installed,” “New Hardware Found,” “The program is still running in the system tray,” etc.) Read more

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

Next Page »

Bottom