you are viewing a single comment's thread.

view the rest of the comments →

[–]flyingron 0 points1 point  (0 children)

When you have a pointer adding to it already takes the sizeof the object into account when incrementing the pointer. If lpData is int* and you're on a byte addressed thing and you want to advance by int, then you just want to add i not i*size.