HiWord/LoWord Extraction and Combination for Long Integers

Category:
Dates and Math
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
These three functions allow you to extract two 16-bit integers (the LoWord and HiWord) from a 32-bit long integer, and combine two 16-bit integers to create 1 32-bit long integer.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: