Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Platform SDK problen!

Platform SDK problen!

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpcomsysadminquestion
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rat crown
    wrote on last edited by
    #1

    Hello I have some problem about Platform SDK using, I need help, but please read carefuly to know the problem and the situation first, Thanks!!! Problem: ======== Windows Data Types: for examples: ULONG_PTR PDWORD_PTR are undeclared identifier in MFC/VC++/Platform SDK!!! Installation' situation: ======================== I have intalled the Platform SDK on my computer. The SDK install file was downloaded from MicoSoft website ( Windows® Server 2003 SP1 Platform SDK Web Install ). The setup file name is: PSDK-x86.exe. The address is : http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3- A93E-40C0EC4F68E5&displaylang=en Platform SDK files situation: ============================= After installed, on my computer, under the folder C:\Program Files\Microsoft Platform SDK\Include, I got the file BaseTsd.h, but in the file, there are no these Data types declarations!!! Ms Platform SDK documentation Say: ================================== All these Windows Data Types are declared in BaseTsd.h So, some body can fig out the problem? Thanks So, some body can fig out the problem? Thanks So, some body can fig out the problem? Thanks

    D 1 Reply Last reply
    0
    • R rat crown

      Hello I have some problem about Platform SDK using, I need help, but please read carefuly to know the problem and the situation first, Thanks!!! Problem: ======== Windows Data Types: for examples: ULONG_PTR PDWORD_PTR are undeclared identifier in MFC/VC++/Platform SDK!!! Installation' situation: ======================== I have intalled the Platform SDK on my computer. The SDK install file was downloaded from MicoSoft website ( Windows® Server 2003 SP1 Platform SDK Web Install ). The setup file name is: PSDK-x86.exe. The address is : http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3- A93E-40C0EC4F68E5&displaylang=en Platform SDK files situation: ============================= After installed, on my computer, under the folder C:\Program Files\Microsoft Platform SDK\Include, I got the file BaseTsd.h, but in the file, there are no these Data types declarations!!! Ms Platform SDK documentation Say: ================================== All these Windows Data Types are declared in BaseTsd.h So, some body can fig out the problem? Thanks So, some body can fig out the problem? Thanks So, some body can fig out the problem? Thanks

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      rat.crown wrote: After installed, on my computer, under the folder C:\Program Files\Microsoft Platform SDK\Include, I got the file BaseTsd.h, but in the file, there are no these Data types declarations!!! So what do you have in the BaseTsd.h file? What size is the file? Is this SDK for Visual Studio 6 or .Net?


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      R 1 Reply Last reply
      0
      • D David Crow

        rat.crown wrote: After installed, on my computer, under the folder C:\Program Files\Microsoft Platform SDK\Include, I got the file BaseTsd.h, but in the file, there are no these Data types declarations!!! So what do you have in the BaseTsd.h file? What size is the file? Is this SDK for Visual Studio 6 or .Net?


        "One must learn from the bite of the fire to leave it alone." - Native American Proverb

        R Offline
        R Offline
        rat crown
        wrote on last edited by
        #3

        ===================== BaseTsd.h File Size: ===================== Name Size Modified BaseTsd.h 9 KB 4/14/2005 ============================================================== Windows® Server 2003 SP1 Platform SDK Web Install Description: ============================================================== [Overview] The Microsoft® Windows® Software Development Kit (SDK) provides the documentation, samples, header files, libraries, and tools you need to develop applications that run on Windows. The applications you develop with this edition of the SDK can run on the x86, x64 and Itanium-based versions of Windows Server 2003 SP1, Windows XP SP2, Windows XP x64 Pro Edition, and Windows 2000. A new custom install allows you to select components you wish to install on a more granular level. [System Requirements] Supported Operating Systems: Windows 2000; Windows Server 2003; Windows XP 64-bit; Windows XP Professional Edition ; Windows XP Service Pack 1 Development Tools. To build the C/C++ samples, you must have a C/C++ compiler. If you are using Microsoft Visual C/C++®, run it at least once before installing the SDK. This will ensure that the environment variables are correctly configured. To build the Visual Basic samples, you must have Microsoft Visual Basic®. This SDK does not support working with Microsoft Visual C/C++®, 6.0 as support for VC 6.0 has ended. The last SDK that will work with VC 6.0 is the February 2003 Edition, you can order a CD on the fulfillment site. Side by side installations are not supported. ======================== BaseTsd.h File content: ======================== /*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: basetsd.h Abstract: Type definitions for the basic sized types. Author: Revision History: --*/ #ifndef _BASETSD_H_ #define _BASETSD_H_ #if !defined(_MAC) && (defined(_M_MRX000) || defined(_M_AMD64) || defined(_M_IA64)) && (_MSC_VER >= 1100) && !(defined(MIDL_PASS) || defined(RC_INVOKED)) #define POINTER_64 __ptr64 typedef unsigned __int64 POINTER_64_INT; #if defined(_WIN64) #define POINTER_32 __ptr32 #else #define POINTER_32 #endif #else #if defined(_MAC) && defined(_MAC_INT_64) #define POINTER_64 __ptr64 typedef unsigned __int64 POINTER_64_INT; #else #if (_MSC_VER >= 1300) && !(defined(MIDL_PASS) || defined(RC_INVOKED)) #define POINTER_64 __ptr64 #else #define POINTER_64 #endif typedef unsigned long POINTER_

        D 1 Reply Last reply
        0
        • R rat crown

          ===================== BaseTsd.h File Size: ===================== Name Size Modified BaseTsd.h 9 KB 4/14/2005 ============================================================== Windows® Server 2003 SP1 Platform SDK Web Install Description: ============================================================== [Overview] The Microsoft® Windows® Software Development Kit (SDK) provides the documentation, samples, header files, libraries, and tools you need to develop applications that run on Windows. The applications you develop with this edition of the SDK can run on the x86, x64 and Itanium-based versions of Windows Server 2003 SP1, Windows XP SP2, Windows XP x64 Pro Edition, and Windows 2000. A new custom install allows you to select components you wish to install on a more granular level. [System Requirements] Supported Operating Systems: Windows 2000; Windows Server 2003; Windows XP 64-bit; Windows XP Professional Edition ; Windows XP Service Pack 1 Development Tools. To build the C/C++ samples, you must have a C/C++ compiler. If you are using Microsoft Visual C/C++®, run it at least once before installing the SDK. This will ensure that the environment variables are correctly configured. To build the Visual Basic samples, you must have Microsoft Visual Basic®. This SDK does not support working with Microsoft Visual C/C++®, 6.0 as support for VC 6.0 has ended. The last SDK that will work with VC 6.0 is the February 2003 Edition, you can order a CD on the fulfillment site. Side by side installations are not supported. ======================== BaseTsd.h File content: ======================== /*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: basetsd.h Abstract: Type definitions for the basic sized types. Author: Revision History: --*/ #ifndef _BASETSD_H_ #define _BASETSD_H_ #if !defined(_MAC) && (defined(_M_MRX000) || defined(_M_AMD64) || defined(_M_IA64)) && (_MSC_VER >= 1100) && !(defined(MIDL_PASS) || defined(RC_INVOKED)) #define POINTER_64 __ptr64 typedef unsigned __int64 POINTER_64_INT; #if defined(_WIN64) #define POINTER_32 __ptr32 #else #define POINTER_32 #endif #else #if defined(_MAC) && defined(_MAC_INT_64) #define POINTER_64 __ptr64 typedef unsigned __int64 POINTER_64_INT; #else #if (_MSC_VER >= 1300) && !(defined(MIDL_PASS) || defined(RC_INVOKED)) #define POINTER_64 __ptr64 #else #define POINTER_64 #endif typedef unsigned long POINTER_

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          rat.crown wrote: BaseTsd.h 9 KB 4/14/2005 Which could be anywhere from 8,704 to 9,727 bytes. In any case, you need to examine the file more closely. Both ULONG_PTR and PDWORD_PTR are defined in the file. Look around lines 104, 114, 123, and 412.


          "One must learn from the bite of the fire to leave it alone." - Native American Proverb

          R 2 Replies Last reply
          0
          • D David Crow

            rat.crown wrote: BaseTsd.h 9 KB 4/14/2005 Which could be anywhere from 8,704 to 9,727 bytes. In any case, you need to examine the file more closely. Both ULONG_PTR and PDWORD_PTR are defined in the file. Look around lines 104, 114, 123, and 412.


            "One must learn from the bite of the fire to leave it alone." - Native American Proverb

            R Offline
            R Offline
            rat crown
            wrote on last edited by
            #5

            Thank you. You fig out my mistake, Sorry for that! But why I can not built the project? The error message is "rror C2065: 'PDWORD_PTR' : undeclared identifier" ? I use the $inlcude statment as following... I think it sgould be OK. #include "C:\Program Files\Microsoft Platform SDK\Include\BaseTsd.h" Thanks

            D 1 Reply Last reply
            0
            • R rat crown

              Thank you. You fig out my mistake, Sorry for that! But why I can not built the project? The error message is "rror C2065: 'PDWORD_PTR' : undeclared identifier" ? I use the $inlcude statment as following... I think it sgould be OK. #include "C:\Program Files\Microsoft Platform SDK\Include\BaseTsd.h" Thanks

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              rat.crown wrote: The error message is "rror C2065: 'PDWORD_PTR' : undeclared identifier" ? Look at the various preprocessor directives (e.g., #if, #ifdef) in that file. Those must evaluate to true in order for the typedef statements to get compiled. rat.crown wrote: #include "C:\Program Files\Microsoft Platform SDK\Include\BaseTsd.h" Why not use this instead: #include <BaseTsd.h>


              "One must learn from the bite of the fire to leave it alone." - Native American Proverb

              R 1 Reply Last reply
              0
              • D David Crow

                rat.crown wrote: BaseTsd.h 9 KB 4/14/2005 Which could be anywhere from 8,704 to 9,727 bytes. In any case, you need to examine the file more closely. Both ULONG_PTR and PDWORD_PTR are defined in the file. Look around lines 104, 114, 123, and 412.


                "One must learn from the bite of the fire to leave it alone." - Native American Proverb

                R Offline
                R Offline
                rat crown
                wrote on last edited by
                #7

                Thank! I got some mistake. I forgort change the directore in the VC++ tools/option. Any way thank you for fig out my problem.

                1 Reply Last reply
                0
                • D David Crow

                  rat.crown wrote: The error message is "rror C2065: 'PDWORD_PTR' : undeclared identifier" ? Look at the various preprocessor directives (e.g., #if, #ifdef) in that file. Those must evaluate to true in order for the typedef statements to get compiled. rat.crown wrote: #include "C:\Program Files\Microsoft Platform SDK\Include\BaseTsd.h" Why not use this instead: #include <BaseTsd.h>


                  "One must learn from the bite of the fire to leave it alone." - Native American Proverb

                  R Offline
                  R Offline
                  rat crown
                  wrote on last edited by
                  #8

                  I got the reason, I have to change the VC/tools/option/directory! Now every thing are OK. Thanks! Its my first using SDK.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups