Microsoft KB Archive/168393

= FIX: OLE Automation Server Creation Fails with Form and OCX =

Article ID: 168393

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition

-



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.



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.

Keywords: kberrmsg kbbug kbfix kbvfp500afix KB168393

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.