Well, at first I had some issues with cvtres.exe, but I got that resolved. Now when I try to compile the "Donuts4" sample that comes with the DirextX 9 SDK, I get errors related to the obj files it uses. I have no idea whats going on. Here are the errors;
d3dfile.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileA@12 referenced in function "public: long __thiscall CD3DMesh::Create(struct IDirect3DDevice9 *,char *)" (?Create@CD3DMesh@@QAEJPAUIDirect3DDevice9@@PAD@Z)
d3dfile.obj : error LNK2019: unresolved external symbol _D3DXLoadMeshFromXA@32 referenced in function "public: long __thiscall CD3DMesh::Create(struct IDirect3DDevice9 *,char *)" (?Create@CD3DMesh@@QAEJPAUIDirect3DDevice9@@PAD@Z)
d3dfile.obj : error LNK2019: unresolved external symbol _D3DXLoadMeshFromXof@32 referenced in function "public: long __thiscall CD3DMesh::Create(struct IDirect3DDevice9 *,struct IDirectXFileData *)" (?Create@CD3DMesh@@QAEJPAUIDirect3DDevice9@@PAUIDirectXFileData@@@Z)
d3dfile.obj : error LNK2019: unresolved external symbol _D3DXComputeNormals@8 referenced in function "public: long __thiscall CD3DMesh::SetFVF(struct IDirect3DDevice9 *,unsigned long)" (?SetFVF@CD3DMesh@@QAEJPAUIDirect3DDevice9@@K@Z)
Bullet.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
EnemyShip.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
donuts.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
gamemenu.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
d3dfile.obj : error LNK2019: unresolved external symbol _D3DXMatrixMultiply@12 referenced in function "public: long __thiscall CD3DFrame::Render(struct IDirect3DDevice9 *,bool,bool,struct D3DXMATRIX *)" (?Render@CD3DFrame@@QAEJPAUIDirect3DDevice9@@_N1PAUD3DXMATRIX@@@Z)
d3dutil.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
3DDisplayObject.obj : error LNK2019: unresolved external symbol _D3DXMatrixMultiply@12 referenced in function "public: long __thiscall C3DDisplayObject::ResolveCollsionWithGroundPt(struct D3DXVECTOR3 const &,struct D3DXVECTOR3 const &)" (?ResolveCollsionWithGroundPt@C3DDisplayObject@@QAEJABUD3DXVECTOR3@@0@Z)
3DDrawManager.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@12
d3dfile.obj : error LNK2019: unresolved external symbol _DirectXFileCreate@4 referenced in function "public: long __thiscall CD3DFile::CreateFromResource(struct IDirect3DDevice9 *,char *,char *)" (?CreateFromResource@CD3DFile@@QAEJPAUIDirect3DDevice9@@PAD1@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__CreateFontA@56 referenced in function "private: long __thiscall CD3DFont::CreateGDIFont(struct HDC__ *,struct HFONT__ * *)" (?CreateGDIFont@CD3DFont@@AAEJPAUHDC__@@PAPAUHFONT__@@@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__GetDeviceCaps@8 referenced in function "private: long __thiscall CD3DFont::CreateGDIFont(struct HDC__ *,struct HFONT__ * *)" (?CreateGDIFont@CD3DFont@@AAEJPAUHDC__@@PAPAUHFONT__@@@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__ExtTextOutA@32 referenced in function "private: long __thiscall CD3DFont::PaintAlphabet(struct HDC__ *,int)" (?PaintAlphabet@CD3DFont@@AAEJPAUHDC__@@H@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__GetTextExtentPoint32A@16 referenced in function "private: long __thiscall CD3DFont::PaintAlphabet(struct HDC__ *,int)" (?PaintAlphabet@CD3DFont@@AAEJPAUHDC__@@H@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)
d3dutil.obj : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function "void __cdecl D3DUtil_InitMaterial(struct _D3DMATERIAL9 &,float,float,float,float)" (?D3DUtil_InitMaterial@@YAXAAU_D3DMATERIAL9@@MMMM@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__SetTextAlign@8 referenced in function "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__SetBkColor@8 referenced in function "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__SetTextColor@8 referenced in function "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__CreateDIBSection@24 referenced in function "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)
d3dutil.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
d3dfont.obj : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)
d3dutil.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8
d3dfont.obj : error LNK2019: unresolved external symbol __imp__SetMapMode@8 referenced in function "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)
d3dfont.obj : error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)
d3dutil.obj : error LNK2001: unresolved external symbol __imp__CreateCompatibleDC@4
TerrainMesh.obj : error LNK2019: unresolved external symbol _D3DXVec3Normalize@8 referenced in function "public: long __thiscall CTerrainMesh::CreateMeshFromHeightMap(int,int)" (?CreateMeshFromHeightMap@CTerrainMesh@@QAEJHH@Z)
donuts.obj : error LNK2019: unresolved external symbol _D3DXVec3Normalize@8 referenced in function "protected: long __thiscall CMyApplication::InitDeviceObjects(struct HWND__ *)" (?InitDeviceObjects@CMyApplication@@IAEJPAUHWND__@@@Z)
d3dutil.obj : error LNK2019: unresolved external symbol _D3DXVec3Normalize@8 referenced in function "void __cdecl D3DUtil_InitLight(struct _D3DLIGHT9 &,enum _D3DLIGHTTYPE,float,float,float)" (?D3DUtil_InitLight@@YAXAAU_D3DLIGHT9@@W4_D3DLIGHTTYPE@@MMM@Z)
3DDisplayObject.obj : error LNK2001: unresolved external symbol _D3DXVec3Normalize@8
StdAfx.obj : error LNK2001: unresolved external symbol _D3DXVec3Normalize@8
TerrainEngine.obj : error LNK2019: unresolved external symbol _D3DXVec3Normalize@8 referenced in function "public: long __thiscall CTerrainEngine::OneTimeSceneInit(class CThemeStyle *)" (?OneTimeSceneInit@CTerrainEngine@@QAEJPAVCThemeStyle@@@Z)
d3dutil.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileExA@56 referenced in function "long __cdecl D3DUtil_CreateTexture(struct IDirect3DDevice9 *,char *,struct IDirect3DTexture9 * *,enum _D3DFORMAT)" (?D3DUtil_CreateTexture@@YAJPAUIDirect3DDevice9@@PADPAPAUIDirect3DTexture9@@W4_D3DFORMAT@@@Z)
HeightMap.obj : error LNK2001: unresolved external symbol _D3DXCreateTextureFromFileExA@56
TerrainMesh.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileExA@56 referenced in function "public: long __thiscall CTerrainMesh::RestoreDeviceObjects(struct HWND__ *)" (?RestoreDeviceObjects@CTerrainMesh@@QAEJPAUHWND__@@@Z)
donuts.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileExA@56 referenced in function "protected: long __thiscall CMyApplication::InitDeviceObjects(struct HWND__ *)" (?InitDeviceObjects@CMyApplication@@IAEJPAUHWND__@@@Z)
d3dutil.obj : error LNK2019: unresolved external symbol _D3DXMatrixLookAtLH@16 referenced in function "struct D3DXMATRIX __cdecl D3DUtil_GetCubeMapViewMatrix(unsigned long)" (?D3DUtil_GetCubeMapViewMatrix@@YA?AUD3DXMATRIX@@K@Z)
gamemenu.obj : error LNK2001: unresolved external symbol _D3DXMatrixLookAtLH@16
d3dutil.obj : error LNK2019: unresolved external symbol _D3DXQuaternionRotationAxis@12 referenced in function "struct D3DXQUATERNION __cdecl D3DUtil_GetRotationFromCursor(struct HWND__ *,float)" (?D3DUtil_GetRotationFromCursor@@YA?AUD3DXQUATERNION@@PAUHWND__@@M@Z)
d3dutil.obj : error LNK2019: unresolved external symbol __imp__ScreenToClient@8 referenced in function "struct D3DXQUATERNION __cdecl D3DUtil_GetRotationFromCursor(struct HWND__ *,float)" (?D3DUtil_GetRotationFromCursor@@YA?AUD3DXQUATERNION@@PAUHWND__@@M@Z)
d3dutil.obj : error LNK2019: unresolved external symbol __imp__GetClientRect@8 referenced in function "struct D3DXQUATERNION __cdecl D3DUtil_GetRotationFromCursor(struct HWND__ *,float)" (?D3DUtil_GetRotationFromCursor@@YA?AUD3DXQUATERNION@@PAUHWND__@@M@Z)
donuts.obj : error LNK2001: unresolved external symbol __imp__GetClientRect@8
d3dutil.obj : error LNK2019: unresolved external symbol __imp__GetCursorPos@4 referenced in function "struct D3DXQUATERNION __cdecl D3DUtil_GetRotationFromCursor(struct HWND__ *,float)" (?D3DUtil_GetRotationFromCursor@@YA?AUD3DXQUATERNION@@PAUHWND__@@M@Z)
d3dutil.obj : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function "long __cdecl D3DUtil_SetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,int)" (?D3DUtil_SetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@H@Z)
d3dutil.obj : error LNK2019: unresolved external symbol __imp__GetDIBits@28 referenced in function "long __cdecl D3DUtil_SetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,int)" (?D3DUtil_SetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@H@Z)
d3dutil.obj : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "long __cdecl D3DUtil_SetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,int)" (?D3DUtil_SetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@H@Z)
Process terminated with status 1 (0 minutes, 4 seconds)
19:44:01: The path 'D:d3dfile.cpp' contains too many ".."!
19:44:01: The path 'D:d3dfile.h' contains too many ".."!
19:44:01: The path 'D:d3dfont.cpp' contains too many ".."!
19:44:01: The path 'D:d3dfont.h' contains too many ".."!
19:44:01: The path 'D:d3dutil.cpp' contains too many ".."!
19:44:01: The path 'D:d3dutil.h' contains too many ".."!
19:44:01: The path 'D:diutil.cpp' contains too many ".."!
19:44:01: The path 'D:diutil.h' contains too many ".."!
19:44:01: The path 'D:dmutil.cpp' contains too many ".."!
19:44:01: The path 'D:dmutil.h' contains too many ".."!
19:44:01: The path 'D:dsutil.cpp' contains too many ".."!
19:44:01: The path 'D:dsutil.h' contains too many ".."!
19:44:01: The path 'D:dxutil.cpp' contains too many ".."!
19:44:01: The path 'D:dxutil.h' contains too many ".."!
I'm pretty sure I know what is wrong with that part, just, how do I fix it? Help would be greatly appreciated.