I get an error when I try to use the FileCopy() function in my program (see code below).
Any ideas why I get this error: "Error description: Error BASE/6101 Unknown or unregistered symbol: FILECOPY"
I get the error with other functions as well (like HB_Base64Encode() )
- Code: Select all Expand view RUN
#include "FiveWin.ch"
#define CRLF CHR(13)+CHR(10)
Function MainTest()
cText:= "#include 'Fivewin.ch'"+CRLF
cText += "Function Main()"+CRLF
cText += " FileCopy( 'c:\test\FileA.txt', 'c:\test\FileB.txt' )"+CRLF
cText += "Return Nil"
Execute( cText )
Return Nil
function Execute( cCode, ... )
local oHrb, cResult, bOldError, uRet
local cFWheaders := "c:\FWH1611\include"
local cHBheaders := "c:\harbour\include"
oHrb = HB_CompileFromBuf( cCode, "-n", "-I" + cFWheaders, "-I" + cHBheaders )
if ! Empty( oHrb )
BEGIN SEQUENCE
uRet = hb_HrbDo( hb_HrbLoad( oHrb ), ... )
END SEQUENCE
endif
return uRet