Use a Class Module for Persistent Global Variables
When I use variables that need to be saved to the Registry or to an INI file, I sometimes forget to place the API call after the variables in a
When I use variables that need to be saved to the Registry or to an INI file, I sometimes forget to place the API call after the variables in a
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
ShellExecute is one of the most flexible Win32 APIs. Using ShellExecute, you can pass any filename, and if the file
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,
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,
Question: If I use malloc locally in a function do I have to use free as well? Won’t someother piece of the application eventually chew up the memory I mallocd,
Question: Is there an equivalent of the CallByName function that returns a list of proprety and method names for an object? Answer: No, there isn’t. If you need that, you