Thread: Dword???

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    29

    Question Dword???

    Search the MSDN site, readup on whats DWORD. The site told me that its a value...but i can't understand cause i came across the usage of DWORD on some programs, but don't seems to be as simple as a value.... Still cannot understand whats DWORD use for...???

    DWORD...datatype???structure???function???

    Please spare your little knowledge to enlighten me....Thanks!!!
    mind your own mind...

    PsychoMantis,

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Its a typedef for an unsigned 32bit value....nothing more

  3. #3
    Banned borko_b's Avatar
    Join Date
    Jun 2002
    Location
    Well... I live in Bulgaria :)
    Posts
    100
    Yeah ...

    typedef unsigned int DWORD;

    although

    It would be more apropriate

    to be:

    typedef unsigned long DWORD;

    because in 16 bit compiler it wouldn't have 32 bit lenght

  4. #4
    Registered User
    Join Date
    Jul 2002
    Posts
    29

    Angry

    So its just a predefine unsign int variable...?

  5. #5
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Originally posted by PsychoMantis
    So its just a predefine unsign int variable...?

    Guess so........Windows seems to do this quite often you'll come across some other ones you'll see I had the same problem. Thankfully now I got me Programming Windows by Petzold......beautiful.....highly recommend it.........
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  6. #6
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Yes, you'll also come across BYTE (unsigned char) and WORD (unsigned int) I think.

  7. #7
    Banned borko_b's Avatar
    Join Date
    Jun 2002
    Location
    Well... I live in Bulgaria :)
    Posts
    100
    >>...WORD (unsigned int)...

    uhm.
    WORD is

    typedef unsigned short WORD;


    because int is 32bit...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help calling function is asm
    By brietje698 in forum C++ Programming
    Replies: 24
    Last Post: 12-06-2007, 04:48 PM
  2. Inline asm
    By brietje698 in forum C++ Programming
    Replies: 5
    Last Post: 11-11-2007, 02:54 PM
  3. Getting position from game..
    By brietje698 in forum C++ Programming
    Replies: 1
    Last Post: 10-26-2007, 12:15 PM
  4. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  5. storage size of regs is unkown
    By Vertex34 in forum C Programming
    Replies: 5
    Last Post: 11-04-2003, 10:17 AM