![]() |
![]() |
![]() |
Checks whether the Microsoft Direct3D runtime version is compatible with the D3DX utility library version.
Syntax
BOOL WINAPI D3DXCheckVersion(
UINT D3DSdkVersion, UINT D3DXSdkVersion );
Parameters
- D3DSdkVersion
- [in] D3D_SDK_VERSION version of the Direct3D runtime.
- D3DXSdkVersion
- [out] D3DX_SDK_VERSION version of the D3DX utility library.
Return Value
Returns TRUE if the the Direct3D runtime version is compatible with the D3DX utility library version; otherwise FALSE is returned.
Remarks
Use this function for initialization of your application as follows.
HRESULT CD3DXMyApplication::Initialize(HINSTANCE hInstance, LPCSTR szWindowName, LPCSTR szClassName, UINT uWidth, UINT uHeight) { HRESULT hr; if (!D3DXCheckVersion(D3D_SDK_VERSION, D3DX_SDK_VERSION)) return E_FAIL; . . . }
Function Information
Header d3dx9core.h Import library d3dx9.lib Minimum operating systems Windows 98