
Simple question, please help?!
Quote:
> > I am using an API call, SetWindowsHookEx, to capture systems messages.
> > However, one of the arguments needs a Long value. I want to pass a null
> > value to the call, to capture system-wide messages. How can I pass Null
> > to the function, without giving an invalid type?
> > ...
> Try 0, if it is a string try vbNullString
vbNullString should work, as I imagine it's a long. If unsure, though,
use 0& (rather than 0 which is 'only' an integer). Or declare yourself a
Const NilPtr As Long = 0&
and use NilPtr where you will.
--
Paul Sampson____Principal Consultant Onyx Systems______Onyx Internet
Zetland Buildings__Exchange Square__Middlesbrough__TS1 1DE__UK 33711 \\/+
BB 74 A4 EF 03 F8 44 C1 F3 75 FE C6 7E F9 6E 43 http://www.onyx.net >--<