想用這個函式,但是一直回傳false,中間的string也一直沒有回傳目錄,到時string的大小能回傳。
dim strpath as string
dim size as long
c = FtpSetCurrentDirectory(hconnection, "/你好、你好/新建檔案夾/")
d = FtpGetCurrentDirectory(hconnection, strpath, size)
我就用最簡單的方式,結果strpath里面都沒有回傳正確的目錄, d也一直都是false。郁悶啊
hconnection的值都有,FtpSetCurrentDirectory也能回傳true 就是這個get的時候不能回傳,求大神幫忙一下,謝謝了~!!
還有就是我用
size = 260
strpath = String(size, 0)
這個的話,就會出現記憶體不能read的錯誤。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/119367.html
標籤:網絡編程
