Tip Bank

DevX - Software Development Resource

Maintain Call Stack for Error Tracing

I program all reusable components into DLLs or OCXs. To provide a consistent error-handling technique across all my projects, I use the Raise method of the Err object in all

DevX - Software Development Resource

Fill In the E-Mail Fields

ShellExecute is one of the most flexible Win32 APIs. Using ShellExecute, you can pass any filename, and if the file

DevX - Software Development Resource

Let Users Resize Your Controls

You can allow users to resize a control?just like in VB design mode?with a mouse, using two simple API calls. You can resize the control?top-left, top, top-right, left, right, bottom-left,

DevX - Software Development Resource

Have Your Functions Both Ways

When you create generic functions, remember that many functions are a two-way street. For example, many general utility modules contain both LoWord and HiWord functions. However, to compose a Long,

DevX - Software Development Resource

Converting a Hex String to Decimal

Question: I have a database of strings of hex numbers and I want to convert them to decimal. There doesn’t seem to be a function for it, but can you

DevX - Software Development Resource

Dead Code

Question: Do you know of a tool that helps to either eliminate or identify dead code? Answer: You don’t need a special tool to detect dead code. Every decent compiler