Hi gtv625,
> in \contrib\hbtip i still have only hbtip.hbc and hbtipssl.hbc. am i
> right when think that the prgs that should be in this folder are
> producing libraries libhbtip.a and libhbtipssl.a. those libraries are
> allrady in \lib folder. if this is ok i still don't know how to
> implement Cwd() .and. Mkd()
I suspect that you do not have the Harbour sources at all but only the
binaries. The sources are in a separate download from a separate page
under the page I mentioned last time. Sources are not strictly necessary
for application programmers but can be a big help when trying to
understand how things are supposed to work.
Are you using Harbour 3.0.0? hbtipssl.hbc was removed last July, about
a year after 3.0.0. was released, so current downloads do not have it.
If you do, download the 3.0.0 sources to match your binaries or
otherwise the nightly sources.
Using Cwd() is optional, as I said before. I usually set up the oUrl
object and the oFtp object like this:
oUrl := tUrl():New()
oUrl:cProto := "ftp"
oUrl:cServer := "thenameoftheserver"
oUrl:cPath := "theremotepath" // Will trigger Cwd() if set
oUrl:cFile := "theremotefilename"
oUrl:cUserid := "theusername"
oUrl:cPassword := "thepassword"
oFtp := tIPClientFtp():New( oUrl, .T. )
[...]
or use a manual Cwd() with something like this:
lSuccess := oFtp:Cwd( "theremotepath" )
Mkd() is similar:
lSuccess := oFtp:Mkd( "thenewremotepath" )
Prepend a forward slash to the remote path to start from the root.
If you want to know where you are you can get the current path with:
cCurrentPath := oFtp:Pwd()
Regards,
Klas