D3DX10CheckVersion function
Verify that the version of D3DX you compiled with is the version that you are running.
Syntax
HRESULT D3DX10CheckVersion(
_In_ UINT D3DSdkVersion,
_In_ UINT D3DX10SdkVersion
);
Parameters
-
D3DSdkVersion [in]
-
Type: UINT
Use D3D10_SDK_VERSION. See remarks.
-
D3DX10SdkVersion [in]
-
Type: UINT
Use D3DX10_SDK_VERSION. See remarks.
Return value
Type: HRESULT
If the version doesn't match, the function will return FALSE (a number less than or equal to 0, the number itself has no meaning).
Remarks
Use this function during the initialization of your application.
HRESULT hr;
if( FAILED( D3DX10CheckVersion(D3D10_SDK_VERSION, D3DX10_SDK_VERSION) ) )
return E_FAIL;
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also