How To Package HiWord/LoWord Values Into a Long Parameter (189170)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q189170 SUMMARY
For some API functions, such as SendMessage or PostMessage, you may need to
package two short Integer values into a Long variable to pass them as a
single parameter. This article demonstrates how to package such Integers
and how to unpack them if necessary.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
112651 How To Mimic HIWORD, LOWORD, HIBYTE, LOBYTE C Macros in VB
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB189170 |
---|
|