FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC tftp class
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
tftp class
Posted: Tue Jan 09, 2007 12:00 AM

Antonio,

You already have a forecast to launch the version with the class tFtp finished?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
tftp class
Posted: Tue Jan 09, 2007 12:14 AM

Vilian,

Its already published in FWPPC December 2006 build.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
tftp class
Posted: Thu Jan 18, 2007 08:50 PM

Hi Antonio,

I made the update for version 7.01, but I continue with problems to send archives saw ftp! Class FtpFile is not available?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
tftp class
Posted: Thu Jan 18, 2007 09:03 PM

Vilian,

What problems do you have ? Can you post a sample ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
tftp class
Posted: Thu Jan 18, 2007 11:00 PM

The problem is the lack of class TFtpFile, it still is not ready?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
tftp class
Posted: Fri Jan 19, 2007 12:46 AM

Vilian,

Please download FWPPC again, we missed to include it. Thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
tftp class
Posted: Tue Jan 23, 2007 02:23 PM

Antonio,

I received the new update, but now it appears the following error:

FiveCE.lib(TFTPFILE.obj) : error LNK2001: unresolved external symbol HB_FUN_INTERNETSETFILEPOINTER
FiveCE.lib(TFTPFILE.obj) : error LNK2001: unresolved external symbol HB_FUN_INTERNETREADFILE
FiveCE.lib(TFTPFILE.obj) : error LNK2001: unresolved external symbol HB_FUN_INTERNETWRITEFILE
FiveCE.lib(TFTPFILE.obj) : error LNK2001: unresolved external symbol HB_FUN_FTPOPENFILE

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
tftp class
Posted: Tue Jan 23, 2007 03:10 PM

Vilan

Make sure you are linking wininet.lib

echo $(VCDIR)\lib\arm\wininet.lib >> msvc.tmp

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
tftp class
Posted: Tue Jan 23, 2007 04:55 PM

Hi Richard,

yes, I am including wininet.lib in the generation of my application.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
tftp class
Posted: Tue Jan 23, 2007 05:16 PM

Vilian,

Please link inet.lib too

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
tftp class
Posted: Tue Jan 23, 2007 06:25 PM

Antonio,

where I find inet.lib?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
tftp class
Posted: Tue Jan 23, 2007 07:20 PM

Vilian,

My mistake, inet.lib is not needed. You have to link wininet.lib

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
tftp class
Posted: Tue Jan 23, 2007 07:28 PM

Antonio,

I am including wininet.lib(04/06/2003) in the generation of my application :cry:

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
tftp class
Posted: Tue Jan 23, 2007 08:12 PM

Vilian

This are the libs i am linking and i use tftp with success

echo $(VCDIR)\lib\arm\coredll.lib >> msvc.tmp
echo $(VCDIR)\lib\arm\corelibc.lib >> msvc.tmp
echo $(VCDIR)\lib\arm\aygshell.lib >> msvc.tmp
echo $(VCDIR)\lib\arm\ws2.lib >> msvc.tmp
echo $(VCDIR)\lib\arm\mfcce400.lib >> msvc.tmp
echo $(VCDIR)\lib\arm\ole32.lib >> msvc.tmp
echo $(VCDIR)\lib\arm\ceshell.lib >> msvc.tmp
echo $(VCDIR)\lib\arm\commctrl.lib >> msvc.tmp
echo $(VCDIR)\lib\arm\wininet.lib >> msvc.tmp
echo $(VCDIR)\lib\arm\cellcore.lib >> msvc.tmp

Hth

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
tftp class
Posted: Tue Jan 23, 2007 08:29 PM
Hi Richards,

I am using same libs that you. The error appears when use class tFtpFile in the function below:

STATIC FUNCTION MandaArq(cArquivo,cRemote,nTam)
LOCAL n,hSource,cBuffer:=Space( 6400 ),nBufSize:=6400,oFile

IF (hSource := FOpen( cArquivo )) < 0
RETURN .F.
ELSE
cBuffer := Space( 6400 )
nBufSize := 6400
SysRefresh()

oFile := TFtpFile():New( cRemote, oFTP )
IF Empty(oFile)
RETURN .F.
ELSE
oFile:OpenWrite()
FSeek( hSource, 0, 0 )

nTotal := 0
DO WHILE ( nBytes := FRead( hSource, @cBuffer, nBufSize ) ) > 0
nFeito := oFile:Write( SubStr( cBuffer, 1, nBytes ) )
SysRefresh()
nTotal += nBytes
ENDDO
oFile:End()
FClose( hSource )
ENDIF
ENDIF

RETURN .T.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil