Microsoft KB Archive/170752

= PRB: The Internet Transfer Control Causes "Invalid Callee" Error =

Article ID: 170752

Article Last Modified on 8/12/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q170752



SYMPTOMS
When using the Internet Transfer ActiveX control in Visual FoxPro 5.0, the error "Invalid Callee" occurs when issuing the control's Execute command. This error occurs if the control is either used on a form inside of Visual FoxPro or run in a distributed executable.



RESOLUTION
Placing the SYS(2333,0) function in the Load event of the form eliminates the error.



MORE INFORMATION
Sometimes an ActiveX control may register itself incorrectly as supporting a dual interface: a combination of IDispatch and Vtable binding. When this occurs, Visual FoxPro has the capability to turn off the dual interface support using the SYS(2333), ActiveX Dual Interface Support, function.

Steps to Reproduce Behavior
 Create a form called Transfer.scx. From the Form Controls toolbar, click the OLE Container control. After clicking on the form, select the "Insert Control" radio button located in the Insert Object dialog box. Select the Microsoft Internet Transfer control from the list box.  Place a command button on the form and place the following code in the Click event: THISFORM.OLECONTROL1.EXECUTE("ftp://host.com/pub")  Run the form and click on the command button. Note that the "Invalid Callee" error occurs. Place the "=SYS(2333,0)" statement in the Load event of the form and note that the error does not occur.</li></ol>

<div class="references_section">