help ftp

help ftp

Postby damianodec » Mon Feb 27, 2012 8:43 am

Hi Antonio, excuse me.
I have not experience with FTP and I'm trying.
I have on my pc server on 192.168.2.95 and on "c:\prova" i have the file CUSTOMER.DBF
I have this PRG:
#include "FiveWin.ch"
function Main()
local oInternet := TInternet():New()
local oFTP := TFTP():New( "192.168.2.95", oInternet, "usr", "psw" )
local aFiles
if ! Empty( oFTP:hFTP )
USE Customer
Browse()
USE
etc...

but I get this error:
Error description: (DOS Error 2) DBFNTX/1001 Open error: Customer.dbf

can you help me?
or
can you suggest me some other way to read the file CUSTOMER.DBF on Internet?
thanks
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: help ftp

Postby ADutheil » Mon Feb 27, 2012 12:09 pm

Is customer.dbf in the same directory as your .EXE ? Re-reading your question it seems you want to open a remote dbf. Might be an opportunity to use the new HTML5 socket Antonio introduced a couple of month ago. If you can´t or don´t want I thing you´ll have to download the DBF before you can use it.
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: help ftp

Postby damianodec » Mon Feb 27, 2012 1:45 pm

I want to open remote dbf...
any example?
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: help ftp

Postby ADutheil » Mon Feb 27, 2012 2:52 pm

I´m not aware of any direct way like use "remote/link/table.dbf". You might use hbnetio contrib. Have a look at harbour docs.
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: help ftp

Postby anserkk » Thu Mar 01, 2012 4:27 am

LetoDB http://letodb.sourceforge.net/
Leto is a multiplatform database server or a database management system, chiefly intended for client programs, written on Harbour, be able to work with dbf/cdx files, located on a remote server.


Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 84 guests