When the variable is declared in VB as the following form, the SZPath will be assigned a space at runtime, and the initialization value is: vbnullchar, not a space.
DIM SZPATH AS STRING * 255
Szpath = VBnullchar & Vbnullchar & Vbnullchar &. . .
255 vbnullchar
'-------------------------------------------' Please indicate the source 'author: Don just fine' E-mail: tanaya@163.com '------------------------------------- --------