Path: chuka.playstation.co.uk!news From: "Miles Buzzing" Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Big Problem!!!! PLEASE HELP Date: 17 Feb 1999 23:39:55 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 24 Message-ID: <01be5ace$d18b9060$0a3ddec2@guildfoc> References: <36C69821.64DD0473@yahoo.com> <36C9B001.91B95293@vmlabs.com> <36CABB93.F129A77C@ndirect.co.uk> NNTP-Posting-Host: guildfrd.demon.co.uk X-Newsreader: Microsoft Internet News 4.70.1155 Scott's on the right track. If I'm not mistaken this line is a variation on one from PJ Passmore's 3D programming Course Notes. If you've defined the variable PlayerAdd as 'long' then the code is correct and you need to look elsewhere for the error. If, however, the variable is defined as 'long *' then the increment should be +1 not +4. - Miles Alex Herbert wrote in article <36CABB93.F129A77C@ndirect.co.uk>... > With that syntax, the add should happen before the type casting, so that > should be ok - unless PlayerAdd is already a u_long *. > > Herbs > > > Scott Cartier wrote: > > > I'm not sure of my C order-of-operations, but you might need to change > > it to "+1" instead of "+4". Since you're casting it to a u_long > > pointer, adding 4 actually adds "4 * sizeof(u_long *)" which would be > > 16 bytes. Since you only want to skip the first four bytes you'd need > > to change it to a one.