I've installed the June 2010 Direct X SDK and written a simple DX application.
I've set the right header include and library include paths, i.e., they point to
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86
Everything builds fine, but when I run the application, I noticed that the d3d* modules being loaded are C:\Windows\SysWOW64\d3d9.dll
& C:\Windows\SysWOW64\d3dx9d_43.dll
I was under the assumption that linking with libs in the DirectX SDK directory will ensure that the dlls in the SDK, i.e., C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Developer Runtime\x86
would be loaded.
I'm not sure if its related to this, but my application ends up getting a NULL
device handle.
How can I ensure the right DLLs are loaded?