OK, I'm running Code::Blocks V1 RC2, Build Log:
Project : Win32 Application
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Hillam\My Documents\Bryce\Programming\TriangleApp\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: TriangleApp.cpp
TriangleApp.cpp:6:18: d3d8.h: No such file or directory
TriangleApp.cpp:7:22: d3dx8tex.h: No such file or directory
TriangleApp.cpp:22: error: expected constructor, destructor, or type conversion before '*' token
TriangleApp.cpp:22: error: expected `,' or `;' before '*' token
TriangleApp.cpp:23: error: expected constructor, destructor, or type conversion before '*' token
TriangleApp.cpp:23: error: expected `,' or `;' before '*' token
TriangleApp.cpp: In function `void CreateAppWindow(HINSTANCE__*)':
TriangleApp.cpp:114: warning: passing NULL used for non-pointer converting 1 of `HWND__* CreateWindowExA(DWORD, const CHAR*, const CHAR*, DWORD, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)'
TriangleApp.cpp: In function `HRESULT InitFullScreenDirect3D()':
TriangleApp.cpp:146: error: `g_pDirect3D' undeclared (first use this function)
TriangleApp.cpp:146: error: (Each undeclared identifier is reported only once for each function it appears in.)
TriangleApp.cpp:146: error: `D3D_SDK_VERSION' undeclared (first use this function)
TriangleApp.cpp:146: error: `Direct3DCreate8' undeclared (first use this function)
TriangleApp.cpp:149: error: `D3DADAPTER_DEFAULT' undeclared (first use this function)
TriangleApp.cpp:150: error: `D3DDEVTYPE_REF' undeclared (first use this function)
TriangleApp.cpp:150: error: `D3DFMT_X8R8G8B8' undeclared (first use this function)
TriangleApp.cpp:151: error: `D3D_OK' undeclared (first use this function)
TriangleApp.cpp:158: error: `D3DPRESENT_PARAMETERS' undeclared (first use this function)
TriangleApp.cpp:158: error: expected `;' before "D3DPresentParams"
TriangleApp.cpp:159: error: `D3DPresentParams' undeclared (first use this function)
TriangleApp.cpp:165: error: `D3DSWAPEFFECT_DISCARD' undeclared (first use this function)
TriangleApp.cpp:168: error: `D3DDEVTYPE_HAL' undeclared (first use this function)
TriangleApp.cpp:168: error: `D3DCREATE_SOFTWARE_VERTEXPROCESSING' undeclared (first use this function)
TriangleApp.cpp:169: error: `g_pDirect3DDevice' undeclared (first use this function)
TriangleApp.cpp: In function `void CleanUpDirect3D()':
TriangleApp.cpp:179: error: `g_pDirect3DDevice' undeclared (first use this function)
TriangleApp.cpp:181: error: `g_pDirect3D' undeclared (first use this function)
TriangleApp.cpp: In function `void Render()':
TriangleApp.cpp:192: error: `D3DCOLOR_XRGB' undeclared (first use this function)
TriangleApp.cpp:197: error: `IDirect3DVertexBuffer8' undeclared (first use this function)
TriangleApp.cpp:197: error: `pVertexBuf' undeclared (first use this function)
TriangleApp.cpp:198: error: `g_pDirect3DDevice' undeclared (first use this function)
TriangleApp.cpp:199: error: `D3DFVF_XYZRHW' undeclared (first use this function)
TriangleApp.cpp:199: error: `D3DFVF_DIFFUSE' undeclared (first use this function)
TriangleApp.cpp:200: error: `D3DPOOL_DEFAULT' undeclared (first use this function)
TriangleApp.cpp:216: error: `D3DCLEAR_TARGET' undeclared (first use this function)
TriangleApp.cpp:223: error: `D3DPT_TRIANGLELIST' undeclared (first use this function)
Process terminated with status 1 (0 minutes, 2 seconds)
It seems there are alot of problems with the header files I am using, but the book that the program came with also came with all the Direct X Stuff so thry can't be wrong. I'm pretty sure its in the linking libraries, the book says I need to link it using those .libs but I have no idea how, he only gives instructions as to how to do it using Microsoft VC++, and that is why I need to know how to get that plugin working, unless of course it's possible for someone to help me do that using Code::Blocks.
EDIT: Does Code::Blocks have trouble with filesnames that have spaces in them? I'm aware that most other compilers do, but I thought Code::Blocks was fine with it. Correct me if im wrong.