<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'what is a DWORD_PTR?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'what is a DWORD_PTR?' posted on the 'Windows programming' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Fri, 24 May 2013 21:57:06 -0700</pubDate>
    <lastBuildDate>Fri, 24 May 2013 21:57:06 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>what is a DWORD_PTR?</title>
      <link>http://www.programmersheaven.com/mb/windows/322765/322765/what-is-a-dword_ptr/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I'm running MS Visual C++ 6.0 and I've just downloaded the DirectX 9 SDK from microsoft.com. Now, whenever I try and compile some programs I get the error message from all of the newly installed ".h" files that contains references to a type called DWORD_PTR. For example, the following code&lt;br /&gt;
&lt;pre class="sourcecode"&gt;typedef DWORD_PTR HSEMAPHORE;&lt;/pre&gt;generates the error&lt;br /&gt;
&lt;pre class="sourcecode"&gt;missing ';' before identifier 'HSEMAPHORE'&lt;/pre&gt;&lt;br /&gt;
I can solve the problem by adding the following line before all my "#include" statements:&lt;pre class="sourcecode"&gt;typedef unsigned long;&lt;/pre&gt;but I still get the same for other types (e.g. LONG_PTR). Is there a header file I can include which will define all these new types that are used by the WinAPI?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance,&lt;br /&gt;
Dan &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/322765/322765/what-is-a-dword_ptr/</guid>
      <pubDate>Wed, 30 Nov 2005 12:59:11 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: what is a DWORD_PTR?</title>
      <link>http://www.programmersheaven.com/mb/windows/322765/323136/re-what-is-a-dword_ptr/#323136</link>
      <description>: Hi,&lt;br /&gt;
: &lt;br /&gt;
: I'm running MS Visual C++ 6.0 and I've just downloaded the DirectX 9 SDK from microsoft.com. Now, whenever I try and compile some programs I get the error message from all of the newly installed ".h" files that contains references to a type called DWORD_PTR. For example, the following code&lt;br /&gt;
: &lt;pre class="sourcecode"&gt;typedef DWORD_PTR HSEMAPHORE;&lt;/pre&gt;generates the error&lt;br /&gt;
: &lt;pre class="sourcecode"&gt;missing ';' before identifier 'HSEMAPHORE'&lt;/pre&gt;&lt;br /&gt;
: I can solve the problem by adding the following line before all my "#include" statements:&lt;pre class="sourcecode"&gt;typedef unsigned long;&lt;/pre&gt;but I still get the same for other types (e.g. LONG_PTR). Is there a header file I can include which will define all these new types that are used by the WinAPI?&lt;br /&gt;
: &lt;br /&gt;
: Thanks in advance,&lt;br /&gt;
: Dan &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
: &lt;br /&gt;
I found an article in MSDN that state this is defined in public\sdk\inc\basetsd.h&lt;br /&gt;
Try adding that to your include path &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/322765/323136/re-what-is-a-dword_ptr/#323136</guid>
      <pubDate>Mon, 05 Dec 2005 10:41:24 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: what is a DWORD_PTR?</title>
      <link>http://www.programmersheaven.com/mb/windows/322765/323221/re-what-is-a-dword_ptr/#323221</link>
      <description>Thanks for your help. VC++ 6.0 does come with an older version of basetsd.h (which is in fact where these types are now declared &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;) I just downloaded the latest version of basetsd.h and now my code compiles just fine. Thank you!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/322765/323221/re-what-is-a-dword_ptr/#323221</guid>
      <pubDate>Tue, 06 Dec 2005 09:11:37 -0700</pubDate>
      <category>Windows programming</category>
    </item>
  </channel>
</rss>