Sample ftpserv
Posted: Mon Nov 19, 2007 3:42 pm
I try to test sample file c:\fwh\samples\ftpserv.prg
but function TftpServer not found.
Please tell me how to solve this problem.
Thank..........
************ Sample Source Code ***************
// FiveWin Class TFtpServer demo
#include "FiveWin.ch"
static oWnd, oFTPServer
function Main()
local oBar
DEFINE WINDOW oWnd TITLE "FiveWin FTP server"
DEFINE BUTTONBAR oBar _3D OF oWnd
DEFINE BUTTON OF oBar ACTION BuildServer()
ACTIVATE WINDOW oWnd
return nil
function BuildServer()
oFTPServer := TFtpServer():New()
oFtpServer:cLogFile = "ftpserv.log"
oFtpServer:lDebug = .t.
oFTPServer:Activate()
return nil
******************* Complie Resulte **********************
ฺฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฟ
ณ FiveWin for Harbour 7.11 - Nov. 2007 Harbour development power ณ
ณ (c) FiveTech, 1993-2007 for Microsoft Windows 95/98/NT/2000/ME/XP/Vista ณ
ภฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤู
฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿
Compiling...
Harbour devel build 1.1-1 Intl.
Copyright (c) 1999-2007, http://www.harbour-project.org/
Compiling 'ftpserv.prg' and generating preprocessed output to 'ftpserv.ppo'...
Lines 3539, Functions/Procedures 3
Generating C source output to 'ftpserv.c'... Done.
Press any key to continue . . .
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
ftpserv.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_TFTPSERVER' referenced from C:\PROJECT\TEMP\
FTPSERV.OBJ
but function TftpServer not found.
Please tell me how to solve this problem.
Thank..........
************ Sample Source Code ***************
// FiveWin Class TFtpServer demo
#include "FiveWin.ch"
static oWnd, oFTPServer
function Main()
local oBar
DEFINE WINDOW oWnd TITLE "FiveWin FTP server"
DEFINE BUTTONBAR oBar _3D OF oWnd
DEFINE BUTTON OF oBar ACTION BuildServer()
ACTIVATE WINDOW oWnd
return nil
function BuildServer()
oFTPServer := TFtpServer():New()
oFtpServer:cLogFile = "ftpserv.log"
oFtpServer:lDebug = .t.
oFTPServer:Activate()
return nil
******************* Complie Resulte **********************
ฺฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฟ
ณ FiveWin for Harbour 7.11 - Nov. 2007 Harbour development power ณ
ณ (c) FiveTech, 1993-2007 for Microsoft Windows 95/98/NT/2000/ME/XP/Vista ณ
ภฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤฤู
฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿฿
Compiling...
Harbour devel build 1.1-1 Intl.
Copyright (c) 1999-2007, http://www.harbour-project.org/
Compiling 'ftpserv.prg' and generating preprocessed output to 'ftpserv.ppo'...
Lines 3539, Functions/Procedures 3
Generating C source output to 'ftpserv.c'... Done.
Press any key to continue . . .
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
ftpserv.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_TFTPSERVER' referenced from C:\PROJECT\TEMP\
FTPSERV.OBJ