FTP Library Troubles

Hi,

When I load the sample VB.NET project for smartFTP FTP library in VB.NET 2005 Beta and try to run it, I get an InvalidCastException on:

objFTP = CreateObject("sfFTPLib.FTPConnection")

When I try to code the same in my own test project it says 'Declaration Expected' on that same line.

Anybody know what might be wrong?

Thx...
djrud


>>>>
Part of Code
>>>>

Option Explicit On
Imports sfFTPLib

Module test

Dim objFTP As sfFTPLib.FTPConnectionClass
objFTP = CreateObject("sfFTPLib.FTPConnection")

objFTP.Host = "ftp.test.com"
....

Hi,

My solution of this problem was a different way of declaring in VB.NET. I used:

Dim objFTP As sfFTPLib.FTPConnectionClass
objFTP = New sfFTPLib.FTPConnection

instead of:

Dim objFTP As sfFTPLib.FTPConnectionClass
objFTP = CreateObject("sfFTPLib.FTPConnection")

Greetz,
djrud

Thank you for your input.

It has been updated in the VB.NET sample.

-Mat