Home > Software engineering >  About the wininet FtpGetCurrentDirectory this function, should how to do?? Seek help from god.
About the wininet FtpGetCurrentDirectory this function, should how to do?? Seek help from god.

Time:10-07

want to use this function, but always returns false, in the middle of the string has no return to the directory, then the size of the string will return,

Dim strpath as string
Dim the size as long



C=FtpSetCurrentDirectory (hconnection, "hi/hello,/new folder/")
D=FtpGetCurrentDirectory (hconnection strpath, size)

I'll use the most simple way, as a result, there's no return in strpath correct directory, d also has always been false, depressed

Hconnection values have FtpSetCurrentDirectory can return true is the time of this get can't return, beg god for help, thank you ~!!

And I use the
Size=260
Strpath=String (size, 0)

Can't read this words, can appear memory error,
  • Related