Sign in to follow this  
Followers 0
enaiman

FTPEx.au3 = lots of compiler errors [RESOLVED]

2 posts in this topic

#1 ·  Posted (edited)

I haven't used FTPEx before so I have absolutely no experience with it.

Once I had included FTPEx in my script it caused alot of errors when trying to run the script.

Win7, AutoIt 3.3.6.1

Script include list:

#include "CommMG.au3"
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ComboConstants.au3>
#include <File.au3>
#include <Array.au3>
#Include <String.au3>
#Include <GuiEdit.au3>
#include <FTPEx.au3>

Console output:

C:\Program Files\AutoIt3\Include\WinAPIError.au3(29,61) : ERROR: _WinAPI_GetLastError() already defined.

Func _WinAPI_GetLastError($curErr=@error, $curExt=@extended)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\WinAPIError.au3(48,72) : ERROR: _WinAPI_SetLastError() already defined.

Func _WinAPI_SetLastError($iErrCode, $curErr=@error, $curExt=@extended)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\FTPEx.au3(725,58) : ERROR: _Date_Time_FileTimeToStr() called with wrong number of args.

Local $date = _Date_Time_FileTimeToStr($tFileTime, $bFmt)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\Date.au3(2216,48) : REF: definition of _Date_Time_FileTimeToStr().

Func _Date_Time_FileTimeToStr(ByRef $tFileTime)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\FTPEx.au3(786,58) : WARNING: $tagWIN32_FIND_DATA: possibly used before declaration.

Local $l_DllStruct = DllStructCreate($tagWIN32_FIND_DATA)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\FTPEx.au3(1369,87) : ERROR: _Date_Time_FileTimeToStr() called with wrong number of args.

$DirectoryArray[$DirectoryIndex][3] = _Date_Time_FileTimeToStr( $tFileTime ,$bFmt)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\Date.au3(2216,48) : REF: definition of _Date_Time_FileTimeToStr().

Func _Date_Time_FileTimeToStr(ByRef $tFileTime)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\FTPEx.au3(1371,87) : ERROR: _Date_Time_FileTimeToStr() called with wrong number of args.

$DirectoryArray[$DirectoryIndex][4] = _Date_Time_FileTimeToStr( $tFileTime ,$bFmt)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\Date.au3(2216,48) : REF: definition of _Date_Time_FileTimeToStr().

Func _Date_Time_FileTimeToStr(ByRef $tFileTime)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\FTPEx.au3(1373,87) : ERROR: _Date_Time_FileTimeToStr() called with wrong number of args.

$DirectoryArray[$DirectoryIndex][5] = _Date_Time_FileTimeToStr( $tFileTime ,$bFmt)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\Date.au3(2216,48) : REF: definition of _Date_Time_FileTimeToStr().

Func _Date_Time_FileTimeToStr(ByRef $tFileTime)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\FTPEx.au3(1390,77) : ERROR: _Date_Time_FileTimeToStr() called with wrong number of args.

$FileArray[$FileIndex][3] = _Date_Time_FileTimeToStr( $tFileTime ,$bFmt)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\Date.au3(2216,48) : REF: definition of _Date_Time_FileTimeToStr().

Func _Date_Time_FileTimeToStr(ByRef $tFileTime)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\FTPEx.au3(1392,77) : ERROR: _Date_Time_FileTimeToStr() called with wrong number of args.

$FileArray[$FileIndex][4] = _Date_Time_FileTimeToStr( $tFileTime ,$bFmt)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\Date.au3(2216,48) : REF: definition of _Date_Time_FileTimeToStr().

Func _Date_Time_FileTimeToStr(ByRef $tFileTime)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\FTPEx.au3(1394,77) : ERROR: _Date_Time_FileTimeToStr() called with wrong number of args.

$FileArray[$FileIndex][5] = _Date_Time_FileTimeToStr( $tFileTime ,$bFmt)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\Date.au3(2216,48) : REF: definition of _Date_Time_FileTimeToStr().

Func _Date_Time_FileTimeToStr(ByRef $tFileTime)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\FTPEx.au3(786,58) : ERROR: $tagWIN32_FIND_DATA: undeclared global variable.

Local $l_DllStruct = DllStructCreate($tagWIN32_FIND_DATA)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\Include\FTPEx.au3(557,71) : ERROR: _WinAPI_MakeQWord(): undefined function.

Return _WinAPI_MakeQWord($ai_FTPGetFileSize[0], $ai_FTPGetFileSize[2])

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Script Projects\Extreme Networks\COM1 test\XOScfg.au3 - 11 error(s), 1 warning(s)

!>13:08:53 AU3Check ended.rc:2

>Exit code: 0 Time: 3.955

Well, it looks like errors generated by missing/wrong includes and I have no idea why. Anyone seeing this before? Edited by enaiman

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites



It was about having outdated include files in the default AutoIt include folder.

I just took the include files from a new installation, copied on my machine and re-added a couple of extra includes. ... the script worked just fine after that.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0