Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 24-08-2009
Members
 
Join Date: Jul 2009
Posts: 12
DWORD data type in c

I'm new newbie to c, just finishes few chapters. My question is What is the DWORD data type? For what purpose we use the DWORD data type?
Reply With Quote
  #2  
Old 24-08-2009
Member
 
Join Date: Mar 2008
Posts: 198
Re: DWORD data type in c++

DWORD is stands for a double word. In 16-bit machine word size would be 16 bit But on On a 32-bit machine, it would be 32 bits. And the double word size on 16 bit machine would be 32 bit and on 32bit machine it would be of 64 bit. However, that is very vendor dependent. If you use the 32-bit Microsoft compilers, a WORD and DWORD are the same size!! Since it deals with words, it is meant for low level use for instance bit patterns on an IO chip. If you want high level usage, use unsigned long.
Reply With Quote
  #3  
Old 24-08-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: DWORD data type in c++

Here is the Double-word data typee explanation form powerbasic.com : Double-words are 32-bit (four byte) unsigned integers with a range of 0 to 4,294,967,295 ( 0 to 2^32-1). The type-specifier character for a Double-word is: ???.

You can also declare Double word variables using the DWORD keyword with the DIM statement. For example: DIM I AS DWORD

As for Word values and Integers, Double-word values have a larger positive range than a Long-integer, and still require only four bytes. Double-word values are useful for indicating absolute memory addresses, such as may be used to store pointer values.
Reply With Quote
  #4  
Old 24-08-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: DWORD data type in c

I do believe that, in the Win32 API, 'DWORD' is a 'typedef' for 'unsigned long'. For Information about the underlying C/C++ data types, see Data Type Ranges. And also see this help Windows Data Types .
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "DWORD data type in c"
Thread Thread Starter Forum Replies Last Post
Data type and expressions cloud101 Software Development 1 18-01-2012 11:47 PM
Mafia 2 Installscript Parser error Unsupported "Registry" entry type dword from Phoenix solution Wajidali Video Games 7 04-09-2010 05:52 AM
What is the purpose of converting data type? snapper Software Development 1 16-07-2010 11:00 AM
Temporal Data Type In SQL Amaresh Software Development 5 02-02-2010 08:49 PM
When to create User Defined Data Type in VB.Net Nihar Khan Software Development 3 27-02-2009 11:29 AM


All times are GMT +5.5. The time now is 11:43 AM.