struct rayDelta { long rayDeltaX, rayDeltaY; } ; ... rayDelta preDelta[480]; For the second time, how is this going to even compile? Jim In C++, u dont have to insert the keyword "struct" to the variable declaration. So the code should be compiled just fine