Hello,
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)
https://dl.dropboxusercontent.com/u/19112345/Include.jpg
https://dl.dropboxusercontent.com/u/19112345/lib.jpg
https://dl.dropboxusercontent.com/u/19112345/link.jpg
I would think everything is ok.
Then I have written this short code example:
#include <Windows.h>
#include <stdio.h>
#include <d3d9.h>
#include <d3dx9.h>
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
char* pcCmdLine,
int iShowCmd)
{
PDIRECT3D9 pD3D = Direct3DCreate9(D3D_SDK_VERSION);
Direct3DCreate9(D3D_SDK_VERSION);
pD3D->Release();
return 0;
}
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! :)