The Platform SDK headers that your VC is using are old.  Either something's messed up with your installation, or you've got installed an old platform SDK and you've set the VC include dirs to include that old directory first.
 
To verify, go to C:\Program Files\Microsoft Visual Studio .NET 2003\vc7\PlatformSDK\Include and make sure the BaseTSD.h file contains a line typedef'ing DWORD_PTR.
 
Ehsan
 
P.S. #1
DWORD_PTR is a typedef which maps to a 32bit integer in Win32, and a 64bit integer in Win64.  It's used in those places where you want to cast a pointer to an integer, and using it makes sure when you port your code to 64bit, your pointers cast into a 64bit number, so that they won't get truncated to 32bits.  That's because the x86-64 architecture's default integer length and pointer lengths are 32 and 64 bits respectively.
 
P.S. #2
To TJ, you gotta give 2k3 a try if you use *good* C++ stuff (advanced templates, Boost, Loki, etc.)  :-)  Of course you could always switch to gcc  ;-)
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to