Horrid
Programmer
- May 20, 1999
- 373
I have a windowproc function that is returning a value that I must exract the hiword and loword from, but I cant find any definitions for hiword and loword that I understand
Found these defs in MSDN docs. They are declared in windef.h
#define HIWORD(l) ((WORD) (((DWORD) (l) >> 16) & 0xFFFF))
#define LOWORD(l) ((WORD) (l))
does anyone know how to declare these within VB so I can use these functions?
I tried this one
Public Declare Function Hiword Lib "windef" (ByVal dwValue As DWORD) As WORD, but windef can't be found, I checked the C file and it was just type definitions.
any help or even ideas would be most appreciated.
Found these defs in MSDN docs. They are declared in windef.h
#define HIWORD(l) ((WORD) (((DWORD) (l) >> 16) & 0xFFFF))
#define LOWORD(l) ((WORD) (l))
does anyone know how to declare these within VB so I can use these functions?
I tried this one
Public Declare Function Hiword Lib "windef" (ByVal dwValue As DWORD) As WORD, but windef can't be found, I checked the C file and it was just type definitions.
any help or even ideas would be most appreciated.