Results 1 to 3 of 3

Thread: Is it 16 or 32-bit?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Question Is it 16 or 32-bit?

    Someone might know how to determine if a file/handle/process etc. is 16-bit or 32-bit? Thankye.

  2. #2
    jim mcnamara
    Guest
    Code:
    Dim b as Byte           ' this is 8 bit
    Dim i as Integer       ' this is 16 bit
    Dim j as Long            ' this is 32 bit
    The number of bits in a variable can be found as
    Length = LenB(variable) * 8

    Also, bear in mind that Variant datatypes don't behave like this - they have extra bytes as information as to what type of data they are currently pretending to be.

    VB Strings are unicode, meaning there are two 8 bit bytes for each character.

    All operations on Win95, Win98, Win 2000 me & pro, NT x -
    are all 32 bit, ie,. a 16 bit variable is pushed onto the stack using fill bits to make it 32 bits long - because the stack handles objects in 32 bit chunks only, unless you are doing something odd in MASM32. All of the other registers work this way too.

    Win 3.11 and earlier run on 16 bit machines - same deal with the stack & registers only 16 bits this time

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    That helps

    However, I'm still clueless as to find out if a file is 16 or 32-bit. Lets say that I've got the hwnd to a window, in which I'm able to retrieve the process, filepath, you name it from it. How can implement this to determine how many bits it uses?

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