As Visual Studio defined _MSC_VER, 1700 stands for VS2012 while 1800 stands for VS2013.

Does DirectX9 define something to differentiate between (December 2004) and (June 2010)?

有帮助吗?

解决方案

Not sure, but I guess that D3D_SDK_VERSION and D3DX_SDK_VERSION defines is that you are looking for. At least in this example it's used to check a runtime vs. build versions:

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;

    //...
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top