I use pragma once and precompiled headers. I've only put the d3d header files in my precompiled header.
Edit: Btw, this is what my precompiled header looks like
#pragma once#define WIN32_LEAN_AND_MEAN#include <windows.h>#include <windowsx.h>#include <basetsd.h>#pragma warning (disable: 4201)#include <mmsystem.h>#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <string>#include "..\stlport\vector"using namespace std;#include <atlbase.h>#include <d3d9.h>#include <d3dx9.h>#include "Common/dxutil.h"#pragma comment(lib, "d3d9.lib")#pragma comment(lib, "d3dx9.lib")#pragma comment(lib, "dxguid.lib")#pragma comment(lib, "d3dxof.lib")#pragma comment(lib, "dinput9.lib")#pragma comment(lib, "dxguid.lib")#pragma comment(lib, "winmm.lib")#define DIRECTINPUT_VERSION 0x0900#include <dinput.h>#pragma warning (disable: 4201 4100 4189)
[edited by - Fuzztrek on December 30, 2002 7:37:32 PM]