Simple question, please help?! 
Author Message
 Simple question, please help?!

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?

Any help would be greatly appreciated...




Mon, 28 Feb 2000 03:00:00 GMT  
 Simple question, please help?!

Try 0, if it is a string try vbNullString



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?

>Any help would be greatly appreciated...





Tue, 29 Feb 2000 03:00:00 GMT  
 Simple question, please help?!

0&



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?

> Any help would be greatly appreciated...





Tue, 29 Feb 2000 03:00:00 GMT  
 Simple question, please help?!

I think that you need to use the & after the 0:   0&



Quote:
> Try 0, if it is a string try vbNullString



> >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?

> >Any help would be greatly appreciated...





Thu, 02 Mar 2000 03:00:00 GMT  
 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 >--<



Sat, 04 Mar 2000 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Simple question, please help!

2. Simple question, Please Help!!! :)))

3. Simple question...please help

4. A simple question - please help

5. Simple Question, Please help!!! :)))

6. Very simple question - PLEASE HELP !!! :-)

7. MDI simple questions - please help

8. Simple question, please help!

9. Simple question - please help me arghhh!!!!!!!!

10. SIMPLE SIMPLE ListView Question. Please help

11. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

12. SIMPLE QUESTION, please SIMPLE ANSWER

 

 
Powered by phpBB® Forum Software