by R0B » Jan 6, 2002 @ 9:16pm
Ok, I get what you are saying Dan. Your example is just the reverse of mine. I have to store the value or the ULONG in *p a byte *. So, here is my thought.<br><br>*p ++ = (byte)wadfiles[i]->filesize; <br>*p ++ = (byte)wadfiles[i]->filesize <<8;<br>p++;<br><br>Only that won't work because *p ++ = (byte)wadfiles[i]->filesize; would try to store everything in *p, not just the lower byte. But wait, wouldn't I have to do that four times, since p is a byte, but filesize is a ULONG. Also, p points to the address of a unsigned char[500]. Would that mess it up at all. I think that we are getting somewhere, but I could still use more help.<br><br>
"1011001010 NNNNNNNNNNOOOOOOOOOOOOOOOO!!!!!!" -Bender