Okay, my problem is that I get the error "Main.obj : error LNK2001: unresolved external symbol _Direct3DCreate8@4" when I attempt to link my project. I assume this means it cannot find the Direct3DCreate8 function. Yes, I have linked the included files. Here is my code.
Code:
#include "include.h"
#include <d3d8.h>

HRESULT SetupD3D();


HWND				hWnd;
LPDIRECT3D8			g_pD3D = NULL;
LPDIRECT3DDEVICE8	dxMainDevice;



int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nShowCmd)
{
	Window wiMain(hWnd, hInst);
	wiMain.Setup(DefaultWndProc, "MainClass");
	wiMain.Create("Main Window");
	wiMain.Show();

	SetupD3D();

	MessageLoop();

	return 0;
}

HRESULT SetupD3D()
{
	if (NULL = (g_pD3D = Direct3DCreate8(D3D_SDK_VERSION)))
               return E_FAIL;
	

	return 0;
}
Everything used to work fine, but for some reason VC++ 6 is hating DX8. Any ideas?