|
-
Jul 28th, 2006, 08:32 AM
#1
Thread Starter
Lively Member
Learning VB, simple question.
VB Code:
Private Const desktop_createmenu As Int32 = [B]&H4&[/B]
In working over some code and i see the item in bold. WHat is that? I understand its some value poulating the variable but whre is it aquired from?
-
Jul 28th, 2006, 08:50 AM
#2
Re: Learning VB, simple question.
It's a literal value. It's hexadecimal for, coincidentally, 4. I'm guessing that it is a Windows constant, which are documented in various places. If that's the case then it would be helpful if you gave your question a little context.
-
Jul 28th, 2006, 09:01 AM
#3
Thread Starter
Lively Member
Re: Learning VB, simple question.
Ahh, ok..
THe line is from a project that detects if a machine is locked or unlocked.
I have been searching for a simple solution to detect sucha state rather than using hooks and other more complicated options.. just trying to find a simple method to tell me if the station is locked!
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
|