Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Verify that the version of D3DX you compiled with is the version that you are running.
Syntax
BOOL D3DXCheckVersion(
_In_ UINT D3DSDKVersion,
_In_ UINT D3DXSDKVersion
);
Parameters
-
D3DSDKVersion [in]
-
Type: UINT
Use D3D_SDK_VERSION. See remarks.
-
D3DXSDKVersion [in]
-
Type: UINT
Use D3DX_SDK_VERSION. See remarks.
Return value
Type: BOOL
Returns TRUE if the version of D3DX you compiled against is the version you are running with; otherwise, FALSE is returned.
Remarks
Use this function during the initialization of your application like this:
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;
...
}
Use Direct3DCreate9 to verify that the correct runtime is installed.
Requirements
| Requirement | Value |
|---|---|
| Header |
|
| Library |
|
See also