I have a problem with Visual Studio 2010 and DirectX.
I want to start with DirectX, so I have downloaded the DirectX SDK Jun 2010 and have installed.
Then I have made a new Project in VS 2010 and have changed the Project-properties vor DX. You can see in the screenshots my settings. I have select the include-folder, the lib-folder and have set the d3d9.lib and d3dx9.lib in the linker-settings. (Its the german version)
I would think everything is ok.
Then I have written this short code example:
int WINAPI WinMain(HINSTANCE hInstance,
PDIRECT3D9 pD3D = Direct3DCreate9(D3D_SDK_VERSION);
just to try out!
Compiling works fine, but then:
Error 2 error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function _WinMain@16
Can anyone help me? Thanks! :)