dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: what is this

  1. #1
    Join Date
    Jun 2010
    Posts
    115

    Thumbs up what is this

    I have a struct that is initialized as
    With
    .structsize=LenB(struct);
    .mask=&H7DFFF

    and the struct6 is defined as

    {
    dim structsize as Long;
    dim mask as Enum;
    dim s as String
    }

    and Enum is

    {
    x-coor=1,
    y-coor=5,
    z-coor=1000,
    t-coor=123445
    .......
    }

    what is the mask ?
    is it equivalent to 0x7DFFF ?
    Thank you

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: what is this

    That is a HEXIDECIMAL number &H means that. It equals 516095 according to CALC.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    Re: what is this

    Yes, and (also according to Calc) it is 1111101111111111111 binary which is probably the most graphic way of viewing it since it apparently is a bit mask.
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: what is this

    Looks like it's an ENUM
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)