C++ Obliviator 0 Newbie Poster

Hi!

I've installed Windows 7 (64-bit, DX11), MS Visual C++ 2008 Express Edition and DirectX SDK aug 2009.

Now I'm trying to program with DirectX 10, with help from "Introduction to 3D Game Programming with DirectX 10".

Even if I include all include- and lib-files from the SDK directory, I get compile-errors.

EX:

1>------ Build started: Project: Init Direct3D, Configuration: Debug Win32 ------
1>Linking...
1>d3dApp.obj : error LNK2019: unresolved external symbol _D3DX10CreateFontIndirectW@12 referenced in function "public: virtual void __thiscall D3DApp::initApp(void)" (?initApp@D3DApp@@UAEXXZ)
1>C:\Users\Andreas\Documents\Visual Studio 2008\Projects\Introduction to  3D Game Programming with DirectX 10\Intro_3DGameProg_D10_Part2\Chapter 4\Init Direct3D\Debug\Init Direct3D.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Users\Andreas\Documents\Visual Studio 2008\Projects\Introduction to  3D Game Programming with DirectX 10\Intro_3DGameProg_D10_Part2\Chapter 4\Init Direct3D\Debug\BuildLog.htm"
1>Init Direct3D - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I believe the problem is that I have DirectX 11 installed, and I should have DirectX10.
But I do not know how to degrade to DX10...


Along with the SDK-samples comes the "EmptyProject11", but when I try to compile that I get:

1>------ Build started: Project: EmptyProject11, Configuration: Debug Win32 ------
1>Linking...
1>DXUTmisc.obj : error LNK2019: unresolved external symbol _DXTraceW@20 referenced in function "long __stdcall DXUTTrace(char const *,unsigned long,long,wchar_t const *,bool)" (?DXUTTrace@@YGJPBDKJPB_W_N@Z)
1>DXUTmisc.obj : error LNK2019: unresolved external symbol _D3DXSaveSurfaceToFileW@20 referenced in function "long __cdecl DXUTSnapD3D9Screenshot(wchar_t const *)" (?DXUTSnapD3D9Screenshot@@YAJPB_W@Z)
1>DXUTmisc.obj : error LNK2019: unresolved external symbol _D3DX11SaveTextureToFileW@16 referenced in function "long __cdecl DXUTSnapD3D11Screenshot(wchar_t const *,enum D3DX11_IMAGE_FILE_FORMAT)" (?DXUTSnapD3D11Screenshot@@YAJPB_WW4D3DX11_IMAGE_FILE_FORMAT@@@Z)
1>Debug\EmptyProject11.exe : fatal error LNK1120: 3 unresolved externals
1>Build log was saved at "file://c:\Users\Andreas\Documents\Visual Studio 2008\Projects\DirectXSamples\EmptyProject11\Debug\BuildLog.htm"
1>EmptyProject11 - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

If anyone can help me, I would prefer to be able to program with DX10.

Please help me!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.