Function or interface marked as restricted

Hi,

When i try to compile my code using Visual Basic 6, i get the following error message on the following line of code.

Code is :
RemoteFileSize = CLng(FTPFile.Size)

Error is :
Function or interface marked as restricted, or the function uses an automation type not supported by Visual Basic

I have tried to re-install the smartFTP Library, and restart Visual Basic but the problem still occurs.

How can i fix this?

Use FTPFile.SizeLo and FTPFile.SizeHi because VB6 doesn't support 64bit variables.