Use a short rather than an int, because Integer in VB is only 2 bytes but an int in 32-bit C and C++ is 4 bytes.

Minor quibble I know, but best to be accurate