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])
Printable View
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])
Chr$(0)
I can't think where that would not be read as Null.
Not a null character, but a null value (Long data type)
A Long can't be null. Try &H0.
Yeah, I think you're right about 0. *sigh* That's good and bad...
Seems manage window handles and device contexts fine. Usually pass &H0 in an API when you mean nothing.