Working with Other Applications

image\rwnprg32.gif Communicating with Reflection FTP from  Other Programming Languages


Interapplication communication through OLE Automation was originally designed for interpretive environments such as Visual Basic. (Click here for information about using FTP Automation commands in Visual Basic.)

If you're programming in a language such as C or C++, you can also gain access to Reflection FTP through Automation. A detailed discussion of controlling Reflection FTP from these programming languages is beyond the scope of this documentation; a number of books on Automation programming are available.

In short, to communicate with Reflection FTP via Automation, you can use the IDispatch interface (the dispatch interface provided by Automation for accessing objects within an application) to bind to the Reflection FTP application object, by performing the following steps:

1 Initialize OLE Automation.

2 Create an instance of the Reflection FTP application object, or attach to an existing instance.

3 Obtain a reference to Reflection FTP's IDispatch interface.

4 Manipulate Reflection FTP's methods and properties by first obtaining the OLE ID of the method or property, then invoking the method or property by its ID.

5 Terminate the Reflection FTP object when you're done.

6 Uninitialize OLE.

Related Topic

image\jump.gif Accessing Reflection FTP Methods and Properties from Visual Basic