Here is my solution which you can try as an alternative to Daniels
How to get DarkGDK running under VS2010 and older directX samples.
The best solution I have found is to splice together DirectXAug07 and DirectXJune10 this solution builds with minimal errors
and warnings.
Download DirectX SDK for AUG 2007 and DirectX SDK For June 2010
To Get Blitz Terrain Plugin / older DirectX Samples And DarkGDK Files to compile create two directories called
Myinclude and MyLib
To the MyInclude directory add these files
Add these files from Direct SDK AUG 2010
02/07/2007 12:01 1,933 d3dx9.h
02/07/2007 12:01 43,369 d3dx9anim.h
02/07/2007 12:01 23,921 d3dx9core.h
02/07/2007 12:01 42,312 d3dx9effect.h
02/07/2007 12:01 59,604 d3dx9math.h
02/07/2007 12:01 45,267 d3dx9math.inl
02/07/2007 12:01 128,409 d3dx9mesh.h
02/07/2007 12:01 45,897 d3dx9shader.h
02/07/2007 12:01 7,943 d3dx9shape.h
02/07/2007 12:01 61,840 d3dx9tex.h
02/07/2007 12:01 12,012 d3dx9xof.h
Copy The Rest Of The Files Over From DirectX June 2010
14/05/2010 01:46 10,907 audiodefs.h
10/04/2011 18:54 12,768 BlitzTerrain.h
14/05/2010 01:46 2,715 comdecl.h
19/05/2010 23:36 243,136 D2D1.h
19/05/2010 23:36 25,655 D2D1Helper.h
19/05/2010 23:36 3,171 D2DBaseTypes.h
19/05/2010 23:36 5,555 D2Derr.h
19/05/2010 23:36 231,558 D3D10.h
19/05/2010 23:36 71,712 D3D10effect.h
19/05/2010 23:36 4,627 d3d10misc.h
19/05/2010 23:36 89,266 d3d10sdklayers.h
19/05/2010 23:36 24,865 D3D10shader.h
19/05/2010 23:36 71,375 D3D10_1.h
19/05/2010 23:36 12,085 D3D10_1shader.h
19/05/2010 23:36 368,531 D3D11.h
19/05/2010 23:36 121,600 D3D11SDKLayers.h
19/05/2010 23:36 15,610 D3D11Shader.h
19/05/2010 23:36 163,816 d3d9.h
19/05/2010 23:36 25,053 d3d9caps.h
19/05/2010 23:36 89,896 d3d9types.h
19/05/2010 23:36 34,183 D3Dcommon.h
19/05/2010 23:36 16,035 D3Dcompiler.h
19/05/2010 23:36 15,753 D3DCSX.h
19/05/2010 23:36 1,903 D3DX10.h
19/05/2010 23:36 15,605 d3dx10async.h
19/05/2010 23:36 14,454 D3DX10core.h
19/05/2010 23:36 62,641 D3DX10math.h
19/05/2010 23:36 45,816 D3DX10math.inl
19/05/2010 23:36 11,046 D3DX10mesh.h
19/05/2010 23:36 26,672 D3DX10tex.h
19/05/2010 23:36 1,906 D3DX11.h
19/05/2010 23:36 8,700 D3DX11async.h
19/05/2010 23:36 3,868 D3DX11core.h
19/05/2010 23:36 26,986 D3DX11tex.h
19/05/2010 23:36 34,520 D3DX_DXGIFormatConvert.inl
27/01/2010 22:04 121 DarkGDK.h
27/01/2010 22:04 651 DarkGDK2.h
27/01/2010 22:04 2,834 DarkSDK.h
12/10/2010 20:44 8,332 DarkSDK3DMaths.h
27/01/2010 22:04 2,602 DarkSDKAnimation.h
27/01/2010 22:04 2,151 DarkSDKBasic2D.h
27/01/2010 22:04 29,262 DarkSDKBasic3D.h
27/01/2010 22:04 2,599 DarkSDKBitmap.h
12/10/2010 20:44 6,780 DarkSDKCamera.h
27/01/2010 22:04 4,395 DarkSDKCore.h
27/01/2010 22:04 4,716 DarkSDKDisplay.h
27/01/2010 22:04 4,280 DarkSDKFile.h
27/01/2010 22:04 1,706 DarkSDKFtp.h
27/01/2010 22:04 4,144 DarkSDKImage.h
12/10/2010 20:44 4,423 DarkSDKInput.h
27/01/2010 22:04 3,345 DarkSDKLight.h
27/01/2010 22:04 2,993 DarkSDKMatrix.h
27/01/2010 22:04 2,801 DarkSDKMemblocks.h
27/01/2010 22:04 3,378 DarkSDKMultiplayer.h
27/01/2010 22:04 1,581 DarkSDKMusic.h
27/01/2010 22:04 3,122 DarkSDKParticles.h
12/10/2010 20:44 3,691 DarkSDKSound.h
27/01/2010 22:04 3,854 DarkSDKSprites.h
27/01/2010 22:04 3,436 DarkSDKSystem.h
12/10/2010 20:44 1,697 DarkSDKTerrain.h
27/01/2010 22:04 3,362 DarkSDKText.h
27/01/2010 22:04 2,140 DarkSDKWorld.h
08/07/2011 04:54 <DIR> DBO Format
19/05/2010 23:36 2,301 Dcommon.h
19/05/2010 23:36 227,611 dinput.h
19/05/2010 23:36 32,944 dinputd.h
19/05/2010 23:36 9,831 dsconf.h
02/06/2010 12:32 9,087 dsetup.h
19/05/2010 23:36 113,801 dsound.h
19/05/2010 23:36 211,545 DWrite.h
02/06/2010 12:32 8,142 dxdiag.h
14/05/2010 01:52 3,045 DxErr.h
19/05/2010 23:36 8,154 dxfile.h
19/05/2010 23:36 92,648 DXGI.h
19/05/2010 23:36 5,312 DXGIFormat.h
19/05/2010 23:36 4,217 DXGIType.h
02/06/2010 12:32 486 dxsdkver.h
14/05/2010 01:52 24,491 gameux.h
27/01/2010 22:04 967 global.h
27/01/2010 22:04 8,157 globstruct.h
16/07/2011 16:11 0 Includefiles2010.txt
02/06/2010 12:32 5,918 PIXPlugin.h
19/05/2010 23:36 8,751 rmxfguid.h
19/05/2010 23:36 17,623 rmxftmpl.h
14/05/2010 01:52 29,626 rpcsal.h
14/05/2010 01:46 22,089 X3DAudio.h
14/05/2010 01:46 78,466 xact3.h
14/05/2010 01:46 10,785 xact3d3.h
02/06/2010 12:32 17,232 xact3wb.h
14/05/2010 01:46 35,284 XAPO.h
14/05/2010 01:46 17,635 XAPOBase.h
14/05/2010 01:46 7,094 XAPOFX.h
14/05/2010 01:46 64,034 XAudio2.h
14/05/2010 01:46 22,072 XAudio2fx.h
02/06/2010 12:32 34,522 XDSP.h
14/05/2010 02:02 9,272 XInput.h
14/05/2010 01:46 32,756 xma2defs.h
02/06/2010 12:32 118,745 xnamath.h
02/06/2010 12:32 195,536 xnamathconvert.inl
02/06/2010 12:32 105,852 xnamathmatrix.inl
02/06/2010 12:32 73,288 xnamathmisc.inl
02/06/2010 12:32 394,014 xnamathvector.inl
112 File(s) 4,564,225 bytes
3 Dir(s) 900,268,032 bytes free
To The MyLib Directory add these files
Copy These Files To MyLib from June2010 DirectSDK
13/10/2010 19:44 383,270 3DMaths.lib
13/10/2010 19:44 1,340,210 Animation.lib
13/10/2010 19:44 104,442 Basic2D.lib
13/10/2010 19:44 6,460,452 Basic3D.lib
13/10/2010 19:44 114,068 Bitmap.lib
10/04/2011 19:50 591,622 BlitzTerrain.lib
10/04/2011 19:50 268,612 BlitzTerrainRTTMS.lib
13/10/2010 19:44 395,948 Camera.lib
13/10/2010 19:44 216,338 Conv3DS.lib
13/10/2010 19:44 91,236 ConvMD2.lib
13/10/2010 19:44 147,404 ConvMD3.lib
13/10/2010 19:44 159,094 ConvMDL.lib
13/10/2010 19:44 308,704 ConvX.lib
13/10/2010 19:44 835,792 Core.lib
19/05/2010 23:37 2,664 d2d1.lib
19/05/2010 23:37 9,272 d3d10.lib
26/05/2010 19:40 9,360 d3d10_1.lib
26/05/2010 19:40 14,362 d3d11.lib
19/05/2010 23:37 5,210 d3d9.lib
26/05/2010 19:40 6,062 d3dcompiler.lib
26/05/2010 19:40 3,832 D3DCSX.lib
26/05/2010 19:40 3,854 D3DCSXd.lib
26/05/2010 19:40 48,486 d3dx10.lib
26/05/2010 19:40 48,890 d3dx10d.lib
26/05/2010 19:40 14,636 d3dx11.lib
26/05/2010 19:40 14,908 d3dx11d.lib
26/05/2010 19:40 87,926 d3dx9d.lib
13/10/2010 19:44 206,262 DarkSDK.lib
13/10/2010 19:43 206,942 DarkSDK2.lib
19/05/2010 23:37 284,368 dinput8.lib
13/10/2010 19:44 361,602 Display.lib
02/06/2010 12:33 5,994 dsetup.lib
19/05/2010 23:37 4,038 dsound.lib
19/05/2010 23:37 1,758 dwrite.lib
02/06/2010 12:33 5,415,290 DxErr.lib
26/05/2010 19:40 3,580 dxgi.lib
13/10/2010 19:44 273,280 File.lib
13/10/2010 19:44 110,762 FTP.lib
13/10/2010 19:43 291,526 Image.lib
13/10/2010 19:43 232,486 Input.lib
13/10/2010 19:43 201,080 Light.lib
13/10/2010 19:43 243,640 Matrix.lib
13/10/2010 19:43 128,298 Memblocks.lib
13/10/2010 19:43 394,232 Multiplayer.lib
13/10/2010 19:43 124,056 Music.lib
13/10/2010 19:43 471,714 Particles.lib
13/10/2010 19:43 380,592 Sound.lib
13/10/2010 19:43 432,896 Sprites.lib
13/10/2010 19:43 1,201,648 System.lib
13/10/2010 19:43 391,804 Terrain.lib
13/10/2010 19:43 203,428 Text.lib
13/10/2010 19:43 628,974 World.lib
02/06/2010 12:33 2,016 X3DAudio.lib
02/06/2010 12:33 623,810 xapobase.lib
02/06/2010 12:33 846,528 xapobased.lib
02/06/2010 12:33 1,722 XAPOFX.lib
02/06/2010 12:33 3,432 XInput.lib
Copy These Files From DirectXAug2007 SDK
19/07/2007 18:14 89,010 d3dx9.lib
20/07/2007 00:39 570,238 dxguid.lib
02/07/2007 12:01 3,142 dplayx.lib
02/07/2007 12:01 4,540 ddraw.lib
02/07/2007 12:01 1,746 d3dxof.lib
20/07/2007 00:39 4,360,294 DxErr9.lib
This file can be found else where
26/04/2005 12:12 1,088,266 STRMBASE.lib
Note you will have to create a MyLibDebug directory to include the debug versions of the DLLs
IN VS2010 Right click on each project and select properties.
Select VC++ Directories from left list box
Add myInclude directory to the include path
Add myLib directory to the lib path
for debug target include MyLibDebug instead of myLib
Create a copy of all your source directories to use with VS2010 as when VS2010 upgrades your projects you won't be able to
use them again in VS2008.
Clean all solutions before rebuilding otherwise compilation may fall over.
Rebuilding the projects and run!
Good Luck ( Jack Taylor )
PROOF
1>------ Build started: Project: 12Painting, Configuration: Release Win32 ------
2>------ Build started: Project: 11RealtimeTerrainModification, Configuration: Release Win32 ------
2> Main.cpp
1> Main.cpp
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\11RealtimeTerrainModification(Fullversion)\Release\11RealtimeTerrainModification.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\11RealtimeTerrainModification.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
2> 11RealtimeTerrainModification.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\11RealtimeTerrainModification(Fullversion)\Release\11RealtimeTerrainModification.exe
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\12Painting(Fulversion)\Release\12Painting.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\12Painting.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1> 12Painting.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\12Painting(Fulversion)\Release\12Painting.exe
3>------ Build started: Project: 10QuadReduction, Configuration: Release Win32 ------
3> Main.cpp
4>------ Build started: Project: 09QuadRotation, Configuration: Release Win32 ------
4> Main.cpp
3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\10QuadReduction(Fullversion)\Release\10QuadReduction.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\10QuadReduction.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
3> 10QuadReduction.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\10QuadReduction(Fullversion)\Release\10QuadReduction.exe
4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\09QuadRotation(Fullversion)\Release\09QuadRotation.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\09QuadRotation.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
4> 09QuadRotation.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\09QuadRotation(Fullversion)\Release\09QuadRotation.exe
5>------ Build started: Project: 08Exclusion2, Configuration: Release Win32 ------
5> Main.cpp
6>------ Build started: Project: 07Exclusion, Configuration: Release Win32 ------
5>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\08Exclusion2(Fullversion)\Release\08Exclusion2.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\08Exclusion2.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
6> Main.cpp
5> 08Exclusion2.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\08Exclusion2(Fullversion)\Release\08Exclusion2.exe
6>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\07Exclusion(Fullversion)\Release\07Exclusion.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\07Exclusion.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
7>------ Build started: Project: 06EnvironmentMapping, Configuration: Release Win32 ------
7> Main.cpp
6> 07Exclusion.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\07Exclusion(Fullversion)\Release\07Exclusion.exe
7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\06EnvironmentMapping\Release\06EnvironmentMapping.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\06EnvironmentMapping.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
8>------ Build started: Project: 05Collision, Configuration: Release Win32 ------
8> Main.cpp
7> 06EnvironmentMapping.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\06EnvironmentMapping\Release\06EnvironmentMapping.exe
9>------ Build started: Project: 04TerrainLoading, Configuration: Release Win32 ------
9> Main.cpp
8>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\05Collision\Release\05Collision.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\05Collision.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
8> 05Collision.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\05Collision\Release\05Collision.exe
9>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\04TerrainLoading\Release\04TerrainLoading.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\04TerrainLoading.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
10>------ Build started: Project: 03Smoothing, Configuration: Release Win32 ------
10> Main.cpp
9> 04TerrainLoading.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\04TerrainLoading\Release\04TerrainLoading.exe
11>------ Build started: Project: 02AddSomeLOD, Configuration: Release Win32 ------
10>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\03Smoothing\Release\03Smoothing.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\03Smoothing.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
11> Main.cpp
10> 03Smoothing.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\03Smoothing\Release\03Smoothing.exe
11>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\vs2010\Samples\Blitzwerks Terrain\02AddSomeLOD\Release\02AddSomeLOD.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\02AddSomeLOD.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
12>------ Build started: Project: 01GenerateATerrain, Configuration: Release Win32 ------
12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(299,5): warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.
11> 02AddSomeLOD.vcxproj -> D:\vs2010\Samples\Blitzwerks Terrain\02AddSomeLOD\Release\02AddSomeLOD.exe
12> Main.cpp
12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(c:\temp\01GenerateATerrain.exe) does not match the Linker's OutputFile property value (D:\vs2010\Samples\Blitzwerks Terrain\bin\01GenerateATerrain.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
12> 01GenerateATerrain.vcxproj -> c:\temp\01GenerateATerrain.exe
========== Build: 12 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
[img]null[/img]
Jack Taylor