error C2065: 'DWORD_PTR' : undeclared identifier
-
Friday, November 30, 2007 4:25 PM
hi,
do i need to include any preprocessor directives to use DWORD_PTR data structure in my VC6 program?
tried here http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=320035&SiteID=1, but it didnt help.
thanks.
Answers
-
Friday, November 30, 2007 5:39 PMModerator
DWORD_PTR is declared by one of the windows SDK headers (probably windef.h - but you should be #including <windows.h>). If you've #included <windows.h> and don't have DWORD_PTR defined, then your version of the Windows SDK is too old and you'll need to install a newer version. I'm not sure if the current Windows SDK still supports VC6 (or if not, what version does).
All Replies
-
Friday, November 30, 2007 5:39 PMModerator
DWORD_PTR is declared by one of the windows SDK headers (probably windef.h - but you should be #including <windows.h>). If you've #included <windows.h> and don't have DWORD_PTR defined, then your version of the Windows SDK is too old and you'll need to install a newer version. I'm not sure if the current Windows SDK still supports VC6 (or if not, what version does).
-
Thursday, December 06, 2007 6:02 AMModerator
Carl Daniel wrote: I'm not sure if the current Windows SDK still supports VC6 (or if not, what version does).
No, I am sure the latest Windows SDK does not support VC6, the last one that still compatible with vc6 is the February 2003 Edition. Found this in Development Tools item in System requirement section of this page.

