use size_t. a notorious 10053 error found, not fixed yet.