🔒 Locked
Installing the SDK
Advertisement
Original Post
Hello all. I'm new to c++ and new to directx programming. The otherday i tried to install the October release of the directx 9 SDK, however when i run any of the installed samples.I get the following errors: --------------------Configuration: dx9 - Win32 Debug-------------------- Compiling... AntiAlias.cpp NOTE: WINVER has been defined as 0x0500 or greater which enables Windows NT 5.0 and Windows 98 features. When these headers were released, Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions. For this release when WINVER is defined as 0x0500 or greater, you can only build beta or test applications. To build a retail application, set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk to see if retail Windows NT 5.0 or Windows 98 headers are available. See the SDK release notes for more information. c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1' c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2' c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers c:\program files\microsoft directx 9.0 sdk (october 2004)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers c:\c projects\dx9\antialias\antialias\dxut.h(13) : fatal error C1189: #error : "The sample framework requires a Unicode build. If you are using Microsoft Visual C++ .NET, under the General tab of the project properties change the Character Set to ' Use Unicode Character Set'." Error executing cl.exe. dx9.exe - 7 error(s), 0 warning(s) I am currently using visual c++ 6 (standard version), and windows xp. Any ideas or suggestions? Thanks, Hepy
I'm pretty stupid.
[Edited by - Pipo DeClown on December 16, 2004 7:18:32 AM]
[Edited by - Pipo DeClown on December 16, 2004 7:18:32 AM]
Quote:
Original post by Pipo DeClown
Gosh, read the FIRST-est post in this forum!!!
Pipo is wrong!
[Edited by - Pipo DeClown on December 16, 2004 7:51:15 AM]
Quote:
Original post by Hepy
Me or Doomhunk, i looked in the first sticky and its says i need the extra's i got these and dragged all the libs and includes into the directx sdk directories and still got them errors.
Thanks,
Hepy
- Do you have the platform SDK?
- Add UNICODE and _UNICODE to the project preprocessor definitions.
- Do you have the platform SDK?
I'm not sure what you mean here, i just downloaded it from the microsoft site. It's the october release of dx9. I also download the extra's package.
- Add UNICODE and _UNICODE to the project preprocessor definitions.
Like i said i'm very new to dx and c++, i wouldn't know where to put this.
Sorry for my lack of coding knowlegde, but i haven't had the chance to as i can't get this working.
Thanks for any help,
Hepy
I'm not sure what you mean here, i just downloaded it from the microsoft site. It's the october release of dx9. I also download the extra's package.
- Add UNICODE and _UNICODE to the project preprocessor definitions.
Like i said i'm very new to dx and c++, i wouldn't know where to put this.
Sorry for my lack of coding knowlegde, but i haven't had the chance to as i can't get this working.
Thanks for any help,
Hepy
You also need to install the Platform SDK:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
The platform SDK is the latest Windows headers, libs, and documentation. This is different from the DirectX SDK, which is the headers, libs, and documentation for DirectX.
The headers that ship with VC6 support Win95 features only. The API for Win98 features are beta in the headers that ship with VC6. For instance, you won't have support for the wheel of a wheel mouse without updating these files. In order to get proper support for the latest OS features, you need a new platform SDK. I have no idea if the platform SDKs are still updated for VC6, but there are Win2K headers for VC6. I think there may even be XP headers.
For the unicode, I don't remember the exact menus... try Project/Settings. Compiler or C++ settings. There should be a box for additional preprocessor definitions. Put it there.
The headers that ship with VC6 support Win95 features only. The API for Win98 features are beta in the headers that ship with VC6. For instance, you won't have support for the wheel of a wheel mouse without updating these files. In order to get proper support for the latest OS features, you need a new platform SDK. I have no idea if the platform SDKs are still updated for VC6, but there are Win2K headers for VC6. I think there may even be XP headers.
For the unicode, I don't remember the exact menus... try Project/Settings. Compiler or C++ settings. There should be a box for additional preprocessor definitions. Put it there.
Quote:
Original post by Namethatnobodyelsetook
For the unicode, I don't remember the exact menus... try Project/Settings. Compiler or C++ settings. There should be a box for additional preprocessor definitions. Put it there.
You're *exactly* right [smile]
Project->Settings, C++ Settings tab, Preprocessor definitions edit box
Hi, well that fixed the first 6 errors but this one still remians:
--------------------Configuration: AntiAlias - Win32 Debug--------------------
Compiling...
AntiAlias.cpp
c:\c projects\dx9\antialias\antialias\dxut.h(13) : fatal error C1189: #error : "The sample framework requires a Unicode build. If you are using Microsoft Visual C++ .NET, under the General tab of the project properties change the Character Set to '
Use Unicode Character Set'."
Error executing cl.exe.
AntiAlias.exe - 1 error(s), 0 warning(s)
Even after i have added unicode the preprocessor defintions.
Any ideas :(
Thanks,
Hepy
--------------------Configuration: AntiAlias - Win32 Debug--------------------
Compiling...
AntiAlias.cpp
c:\c projects\dx9\antialias\antialias\dxut.h(13) : fatal error C1189: #error : "The sample framework requires a Unicode build. If you are using Microsoft Visual C++ .NET, under the General tab of the project properties change the Character Set to '
Use Unicode Character Set'."
Error executing cl.exe.
AntiAlias.exe - 1 error(s), 0 warning(s)
Even after i have added unicode the preprocessor defintions.
Any ideas :(
Thanks,
Hepy
Can you post the lines around #13 in dxutil.h (including 13)? Wrap them in [source][/source] tags.
Quote:
Original post by darookie
Just do what it says - go to the project settings and change the combobox that says 'Using Multi-Character Set' to 'Unicode character set'. It's not that difficult.
He states in his first post that he's using Visual C++ 6 standard edition.
Quote:
Original post by Coder Quote:
Original post by darookie
Just do what it says - go to the project settings and change the combobox that says 'Using Multi-Character Set' to 'Unicode character set'. It's not that difficult.
He states in his first post that he's using Visual C++ 6 standard edition.
AFAIK there's no difference between VC 6 and above versions regarding UNICODE character set selection. IIRC I could also set the Unicode character set in my project settings with VC6.
Hi, thanks for the replies. Here's the requested code:
Hope that what you were looking for.
Thanks for any help to resolve this problem .
Hepy
#ifndef DXUTIL_H#define DXUTIL_H//-----------------------------------------------------------------------------// Miscellaneous helper functions//-----------------------------------------------------------------------------#define SAFE_DELETE(p) { if(p) { delete (p); (p)=NULL; } }#define SAFE_DELETE_ARRAY(p) { if(p) { delete[] (p); (p)=NULL; } }#define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=NULL; } } //-----------------------------------------------------------------------------// Name: DXUtil_GetDXSDKMediaPath()// Desc: Returns the DirectX SDK path, as stored in the system registry// during the SDK install.//-----------------------------------------------------------------------------const TCHAR* DXUtil_GetDXSDKMediaPath();Hope that what you were looking for.
Thanks for any help to resolve this problem .
Hepy
I hereby say sorry, I haven't read the original post that good. I acted too soon, please forgive my mistake.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement