I''ve created this ... -thing- based on some vague comments I recieved on a newsgroup. I was wondering if any of guy bit guru''s would mind helping me get it in to a compliling state:
#pragma pack( push, single_bit_packing )
#pragma pack(1)
struct turretdirection_t
{
int smallerint TurretAngle:9;
int smallerint TurretHeight:7;
};
#pragma pack( pop, single_bit_packing )
It''s meant to allow me to store two values in two bytes but where one is 9 bit''s long and the other 7 bits long.
Something is definatly wrong with that smallerint thing, and the colon-number is something I can''t seem to find in my manuals.
Once I work this out then all I have to do is work out how to put data in and get data out of it

many thanks
chris