These constant values refer to the product and build versions of the DirectX SDK update. These values are unique to each SDK update and allow you to conditionally compile your code against specific versions of the SDK.
#define | Description |
---|---|
_DXSDK_BUILD_MAJOR | DirectX SDK build major version |
_DXSDK_BUILD_MINOR | DirectX SDK build minor version |
_DXSDK_PRODUCT_MAJOR | DirectX SDK product major version |
_DXSDK_PRODUCT_MINOR | DirectX SDK product minor version |
An effective way to use these constants is to do an assert to make sure the correct build version of the DirectX SDK is installed on a developer's machine. This way, if a new developer joins your project and has the wrong version of the DirectX SDK installed he will get an error message when he runs the program.
Example:
assert(_DXSDK_BUILD_MAJOR == 299); //this checks that the DirectX SDK (August 2005) build is installed.
Header | dxsdkver.h |
---|---|
Minimum operating system | Windows 98 |