Thank you,everyone. I should use the 'int'. I use the 'size_t',that lets the range changed by the platform(X86 or X64),but forgot 'size_t' is another 'uint'. Thank you everyone again. Frank.