On Jan 13, 2010, at 4:11 AM, Philip Lowman wrote: > and VS is having a problem because it doesn't know the size of > the void* ?!? You can replace the two occurrences of "buf += n" with "buf = (char *)buf + n" to fix that. (gcc does know the size of void, but that is non-standard.) Mark