Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 DWORD?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DIIST




PostPosted: Wed Mar 15, 2006 10:08 am   Post subject: DWORD?

Does anyone out there know what a DWORD or WORD is, or what its equal too in Turing? I'm trying to read of the file written in C, which seem to use this variable type a lot. Rolling Eyes !
Sponsor
Sponsor
Sponsor
sponsor
Imm0rtal




PostPosted: Wed Mar 15, 2006 11:10 am   Post subject: (No subject)

When looking at hex you have different Data types.

BYTE = one byte (00 - FF) 8 bits

This translates to an integer of 0 - 255


DWORD = Double word. A data element that is 2 words, 4 bytes and 32 bits in size. (Unsigned long)

This translates to an integer of 0 - 2147483647

(Did you try google? Wink )
DIIST




PostPosted: Sun Mar 19, 2006 8:20 pm   Post subject: (No subject)

Is DWORD a value in HEX? I dont really quite understand. Google isnt much help either.

I was also wondering, you mentioned something about it being equal to an unsigned long. So can you read it as a nat4?

I'm thinking that "WORD" in DWORD doent techinically mean a "word" or string, right?
Andy




PostPosted: Sun Mar 19, 2006 9:50 pm   Post subject: (No subject)

it's not a value, it's a length, kind of like thousand, or million for decimals
Imm0rtal




PostPosted: Mon Mar 20, 2006 8:09 pm   Post subject: (No subject)

DWORD = Double word..

Word = 2 bytes (16 bit length)
DWORD = 4 bytes (32 bit length)

when I said it was a unisgned long that was pertaining to C++. If you do not know what that means then perhaps you should reasearch the C++ language in greater depth.

Hope that helps.
DIIST




PostPosted: Sat Mar 25, 2006 3:52 pm   Post subject: (No subject)

Thanks! I got it now. Very Happy !
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: