Original Post
I''m trying to fill an array/memory with different types of data, kinda like this.
example....
byte B[1024];
void* pB = B;
*(float*)pB++ = (float)10;
*(byte *)pB++ = (byte)5;
*(int *)pB++ = (int)15;
causes this error..doesn''t know how to increase the pointer
error C2036: ''void *'' : unknown size
but something like this works ok..but the pointer doesn''t change to the address after the float.
*(float*)pB = (float)10;
so how can I get pB to point after the float...or maybe i''m missing an easier way of doing this..