Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Zoney

mysterious DWORD

This topic is 5966 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

A commonly used variable type in directx structures is the dword, and in the directx header it is declared like this: DWORD dwVariableName; which is nice, only when I use this myself, sometimes it works fine but other times my compiler claims that the type DWORD doesn''t exist at all... where is the DWORD type declared? it''s the same with the BOOL, but I''ve discovered that you can use bool in lower-case instead...

Share this post


Link to post
Share on other sites
Advertisement
It''s defined in one of the windows headers, I''m not sure which one specifically but including windows.h should add it. It''s an unsigned 32 bit integer.

Win32 data types

Share this post


Link to post
Share on other sites
A DWORD should just be typedef-ed as an unsigned long (32-bit integer). I''m guessing this is how it''s defined in Windows.h or wherever.

Share this post


Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!