FIX: OLE Automation Server Creation Fails with Form and OCX (168393)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 5.0

This article was previously published under Q168393

SYMPTOMS

The creation of an Automation Server fails when a project includes a form class that contains an ActiveX control. The process of building the executable file suddenly halts and the following error message appears:
Error creating the OLE object
Any of the ActiveX controls cause this error message. The error message occurs during the Creating Typelib portion of build process.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Microsoft Visual FoxPro version 5.0a for Windows.

MORE INFORMATION

Steps to Reproduce Behavior

  1. In Visual FoxPro 5.0, create a new project and add a main program containing a WAIT WINDOW command.
  2. In the project manager, add a form class to the project.
  3. Add a Container control to the form class and choose the Grid control or any other control in the Control Type list box.
  4. From the Class menu, select the Class Info menu bar.
  5. In the Class Info dialog box, select the OLE Public check box in the Class tab and save the class.
  6. Attempt to build an executable file. The error occurs.

Modification Type:MajorLast Reviewed:10/16/2002
Keywords:kbBug kberrmsg kbvfp500aFIX KB168393