Help for Platform SDK
-
I have tried Platform SDk, I download the SDK from MS-Website, and installed it. But i found the Platform SDK seem not well! My question are: 1) Some Windows DataType are not declared! for examples: DWORD_PTR, PDWORD_PTR, ULONGLONG... I check the SDK Document, Say these data type declared in BaseTsd.h! But I opened headfile, I did not found these data type declare. Whats wrong? 2) After install Platform SDK, int the c:\C:\Program Files\Microsoft Platform SDK\ folder, there are many head file'name and system files'name are same as in the folder : C:\Program Files\Microsoft Visual Studio\VC98 So which file I will be useing in my projects? And how do I use the different fiels?
-
I have tried Platform SDk, I download the SDK from MS-Website, and installed it. But i found the Platform SDK seem not well! My question are: 1) Some Windows DataType are not declared! for examples: DWORD_PTR, PDWORD_PTR, ULONGLONG... I check the SDK Document, Say these data type declared in BaseTsd.h! But I opened headfile, I did not found these data type declare. Whats wrong? 2) After install Platform SDK, int the c:\C:\Program Files\Microsoft Platform SDK\ folder, there are many head file'name and system files'name are same as in the folder : C:\Program Files\Microsoft Visual Studio\VC98 So which file I will be useing in my projects? And how do I use the different fiels?
You can configure the Visual Studio default directories to search the newer platform SDK header files and libraries. The ones shippd with Visual Studio are just 'older' versions of many of these same files. See Tools|Options|Directories... menu item in Visual Studio 6.0 IDE to make changes. Make it search the Platform SDK folders ahead of the older ones that came with VS 6.0.
-
You can configure the Visual Studio default directories to search the newer platform SDK header files and libraries. The ones shippd with Visual Studio are just 'older' versions of many of these same files. See Tools|Options|Directories... menu item in Visual Studio 6.0 IDE to make changes. Make it search the Platform SDK folders ahead of the older ones that came with VS 6.0.
-
(1) Some Windows DataType are not declared! for examples: DWORD_PTR, PDWORD_PTR, ULONGLONG... I check the SDK Document, Say these data type declared in BaseTsd.h! But I opened headfile, I did not found these data type declare. Whats wrong? Thanks!
Rule #1 - Don't beleive everything you read in MSDN. Rule #2 - See Rule #1 I found them defined in a myriad of files. DWORD_PTR and PDWORD_PTR were defined in GCHOST.H and BaseTsd.h ULONGLONG was defined in PROGRAM FILES\MICROSOFT VISUAL STUDIO .NET 2003\SDK\v1.1\Tool Developers Guide\Samples\smc\Win32.h(38):typedef unsigned __int64 ULONGLONG; and PROGRAM FILES\MICROSOFT VISUAL STUDIO .NET 2003\Vc7\PlatformSDK\Include\WTypes.h(398):typedef unsigned __int64 ULONGLONG; and PROGRAM FILES\MICROSOFT VISUAL STUDIO .NET 2003\Vc7\PlatformSDK\Include\WinNT.h(446):typedef unsigned __int64 ULONGLONG;