My project consists of two source files and one header file.
DX.cpp
graphics.cppCode:#include "stdafx.h"
//...
case WM_LBUTTONDOWN:
i+=0.1;
break;
//...
stdafx.hCode:#include "stdafx.h"
//...
D3DXMatrixRotationX(&matRotateX, i);
//...
The problem is that i need stdafx.h to be included in each of my source files, but that redefines i. Where should I put variables which I need in every souce file?Code://...
float i;
//...