I just can't get the DirectX samples from the samples browser working (provided with directX), when i try to compile them i get linker errors
DXUT.obj : error LNK2019: unresolved external symbol
DXUTmisc.obj : error LNK2001: unresolved external symbol
I have installed DirectXSDK(dec.) and Microsoft Platform SDK. I have added the paths in tools->options [Projects and solutions]->[VC++ directories] to both Platform SDK and Directx dec.
There must be something im missing, could someone plz provide me with the infrmation on how to set Microsoft Visual Studio 2005 up to be able to compile the examples.

Setting up Microsoft Visual Studio 2005 for directX
pater
sorry for not giving all the info. I use Express edition and my directories is as follows.
in [Tools]->[options] vc++ directories
Executable
C:\Program\Microsoft Platform SDK\Bin
(i have tried with \Bin\winNT and without this line at all, aswell..)
Include files
C:\Program\Microsoft DirectX SDK (December 2005)\Include
C:\Program\Microsoft Platform SDK\Include
Library files
C:\Program\Microsoft DirectX SDK (December 2005)\Lib\x86
C:\Program\Microsoft Platform SDK\Lib
scjconsulting
weke
I have the exact same directories as him but when I try to compile the "Simple Sample" project from the directx SDK samples. I get the error :
1>Project : error PRJ0003 : Error spawning 'cl.exe'.
whatever that is.
byteguy
KClawson
Project : error PRJ0003 : Error spawning 'cl.exe'.
The page that was linked to provided four possible causes for the problem. I have enough system resources, but as for the others, I don't know how to check or change them.
Can anyone help us
netbug
Maybe you don't have enough right to run the Cl.exe compiler...
Project : error PRJ0003 : Error spawning 'cl.exe'
Maybe this link could help:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/vccore/html/vcerrProjectBuildErrorPRJ0003.asp
Zuuljin
i have the same problem as him,
but i already included the "includes" from the directory DXUT, it's a linker problem :
DXUT.obj : error LNK2019: unresolved external symbol __imp__InitCommonControls@0 referenced in function "long __stdcall DXUTInit(bool,bool,wchar_t *)" ( DXUTInit@@YGJ_N0PA_W@Z)
DXUT.obj : error LNK2001: unresolved external symbol _IID_IDirect3DSwapChain9
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)
i didn't found out the lib for DXUT. ( Visual c++ express edition, DX SDK april 2006 and platform SDK )
...
solution :
#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "dxerr.lib")
#pragma comment(lib, "d3dx9.lib")
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "winmm.lib")
#pragma comment(lib, "comctl32.lib")
Mike_A139353
DXUT isn't part of the standard SDK libraries. You can find the DXUT files here (depending on where you installed the SDK):
dxsdk\Samples\C++\DXUT