|
-
Apr 22nd, 2002, 08:50 PM
#1
Thread Starter
Member
NULL but in VB
The documentation for some C++ API calls uses NULL for some arguments. Since Null in VB isn't the same as the NULL constant, what should I use to substitute it?
VB Code:
GetDC(NULL) = GetDC([i]what in VB?[/i])
-
Apr 22nd, 2002, 09:28 PM
#2
Chr$(0)
I can't think where that would not be read as Null.
-
Apr 22nd, 2002, 09:33 PM
#3
Thread Starter
Member
Not a null character, but a null value (Long data type)
-
Apr 22nd, 2002, 09:40 PM
#4
A Long can't be null. Try &H0.
-
Apr 22nd, 2002, 09:46 PM
#5
Thread Starter
Member
Yeah, I think you're right about 0. *sigh* That's good and bad...
-
Apr 22nd, 2002, 09:53 PM
#6
Seems manage window handles and device contexts fine. Usually pass &H0 in an API when you mean nothing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|