Jump to content
  • Advertisement
Sign in to follow this  
sas1992

Win32

This topic is 3631 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

Advertisement
They're not macros, they're types.

Win32 is messy just to annoy you. Not because of legacy or anything like that...

Share this post


Link to post
Share on other sites
DWORD and LPSTR are typedefs defined in windef.h and winnt.h respectively


typedef unsigned long DWORD;
typedef __nullterminated CHAR *NPSTR, *LPSTR, *PSTR;


Share this post


Link to post
Share on other sites
Quote:
Original post by sas1992
Are DWORD,LPSTR macros??????
1. Right click on DWORD in the editor window
2. Select "Go To Definition"
3. ...
4. Profit.

Share this post


Link to post
Share on other sites
The Win32 API does this so that developers won't get screwed over in the case where Microsoft decides to change a type or structure definition later on.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!