Category Archives: Visual Basic 6 (VB6)

The Death of PlanetSourceCode

Recently, I went to one my favorite source code repositories, just to check out new submissions, and see how things are progressing in the community. I always enjoy seeing how up and coming young programmers are learning new ways to keep our favorite “old, dead” language alive.

Get Window Handlle from Process ID

A module for retrieving the handle number (hWnd) of a window providing only the process id number (PID). This code is seeking handles that match the given PID and returns the hanlde that refers to a visible window. But, since not all the processes running are windowed or some processes may have multiple windows, may not work for… Read More »

This will allow you to compare times.

I noticed that there is a ‘Date’ type in VB, but no ‘Time’ type. So if you want to compare Dates you are fine, but for Time comparisons you are a bit stuffed. This is very simple and will allow you to convert times into numbers so that you can make easy comparisons with them.