Technical Notes |
|
If you have an application, script, or macro that uses the API included with Reflection FTP Client version 14.0 or earlier, it may need to be updated to run with version 15.0.
Note: Reflection FTP Client version 15.0 is included with products listed in the Applies To section above.
If you have developed a Visual Basic (VB) or .NET C# application to use an earlier version of the Reflection FTP API, you may see errors when attempting to compile or run your application. The error message varies depending on your development environment.
Error when running a C# application:
Retrieving the COM class factory for component with CLSID {21B15F09-4B5F-11D3-A9B6-00C04FA3624C} failed due to the following error: 80040154.Error when running a Microsoft Visual Basic 6.0 (VB6) application:
ActiveX component can't create objectError when building a VB6 project:
Compile error: Can't find project or libraryNote: These symptoms do not occur with scripts and applications that access the Reflection FTP COM object using version-independent late binding CreateObject() calls and do not reference the type library information (such as constant enum names).
To enable your project to run with Reflection FTP Client version 15.0 or higher, make the following changes:
The following sample code demonstrates using early binding in Visual Basic for Applications (VBA):
Sub Main() ' Early binding - using Reflection FTP 1.15 Type Library Dim FTP As New ReflectionFTP15 With FTP .Open "host", "username", "password", "", 21, True ... End With Set FTP = NothingEnd Sub |
The following sample demonstrates .NET C# code in Microsoft Visual Studio 2005:
using System.Text;using ReflectionFTP;namespace ConsoleFTP115Test{ class Program { static void Main(string[] args) { // Using Reflection FTP 1.15 Type Library ReflectionFTP15 FTP = new ReflectionFTP15(); FTP.Open("host", "username", "password", "", 21, -1); ... } }} |
For complete Reflection FTP API help documentation, see Technical Note 2362.