Results 1 to 3 of 3

Thread: hexidecimal?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091
    Hi,

    You know how you declare constants like:

    Public Const WM_MOVE = &H3

    Well, I want to declare the constant for:

    WM_EXITSIZEMOVE

    but all I could find was a declaration of this in the Winuser.h file like:

    #define WM_EXITSIZEMOVE 0x0232

    I tried using it like:

    Public Const WM_EXITSIZEMOVE = 0x0232

    in VB, but it doesn't seem to like that number.. I was wondering how I could translate the 0x0232 to hexidecimal format in order to declare it properly..

    Any help would be appreciated..

    Dan

  2. #2
    Addicted Member Shrog's Avatar
    Join Date
    Aug 1999
    Location
    Darkest Africa
    Posts
    186

    Hex

    The 0x in front of the number simply means that the number is in hex, just like the &H in your own example.

    So 0x0232 in C translates to &H0232 in VB.

    Shrog

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    0x is &H in vb.
    So, the value in vb is &H0232.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width