D3DXCheckVersion
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXCheckVersion Function


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

Headerd3dx9core.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.