Visual Basic

Retrieve File Version Information

Win32 file images can contain a file version resource that stores product and version information about the file. The version num-ber is actually four 16-bit values typically displayed using dot

Testing a Business Rule Should Not Have Any Side Effects

Testing a business rule should have no side effects. Avoid err.raise and msgboxes inside business rule tests.Consider this example: public const kMinimumApplicantAge = 18 ‘declared in common modPublic Function IsApplicantAgeEligible(DOB

Simple Component Testing

When creating ActiveX components, an easy way to test them is to add a module to the project (see the code below). In this module you can write methods that