[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
nMakeLong( nLoWord, nHiWord )-> <nLong>
------------------------------------------------------------------------------
PARAMETER:
<nLoWord> Is the least significant word of the target DWORD value
<nHiWord> Is the most significant word of the target DWORD value
RETURNS:
<nLong> is the resulting long integer value
DESCRIPTION:
nMakeLong() lets you create a long integer from two short int's (WORDS).
A long Integer ( DWORD ) is made of two words, or 4 bytes: a low word and
a high word. This function can be very usefull to pack 2 values into one
argument :
EXAMPLE:
+--------------------------------------------------------------+
| /* Pump up the volume : */ |
| nVolume := nMakeLong( 5, 5) |
| SetVolume( nVolume ) |
| ..... |
| Function SetVolume( nVol ) |
| nLeftVolume := nLoWord( nVol ) // -> 5 |
| nRightVolume := nHiWord( nVol ) // -> 5 |
+--------------------------------------------------------------+
SOURCE:
SOURCE\FUNCTION\MAKELONG.C
See Also:
nHiWord
nLoWord
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson