FIX: Error Creating OLE Object

Last reviewed: October 20, 1997
Article ID: Q117620
2.5x 2.6x WINDOWS kbole kbprg kberrmsg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5x, 2.6x

SYMPTOMS

When you use the Insert Object command on the Edit menu to insert an OLE object into a general field and the object is on a CD-ROM, the following error message occurs:

   Error Creating OLE Object

WORKAROUND

To avoid this problem, do one of the following:

  • Copy the file from the CD-ROM to the hard disk.

    -or-

  • Use the Object Packager Windows-based application to add the object. For example:

    1. From the Accessories group in the Windows Program Manager, start

          Object Packager.
    

    2. From Object Packager's File menu, choose Import.

    3. Select the file (.BMP, .AVI, and so on).

    4. From Object Packager's Edit menu, choose Copy Package.

    5. Open FoxPro. USE the database, and then issue the following command

          in the Command window:
    

             MODIFY GENERAL <fieldname>
    
       6. From FoxPro's Edit menu, choose Paste Special.
    
       7. Select Package Object from the list, and then choose the Paste
          button.
    
    

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0 for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Insert a CD-ROM containing bitmaps or .AVI files in the CD-ROM drive.

  2. At the FoxPro for Windows Command window, issue the following commands:

          CREATE TABLE MYTEST (genral g)
          APPEND BLANK
          MODIFY GENERAL mytest.genral
    

  3. From the Edit menu, choose Insert Object.

  4. Choose the File button, and then change the drive to the local CD-ROM drive. In the List Files Of Type box, select either "Paintbrush Picture (*.bmp)" or "Media Clip (*.avi)", select a file from the CD-ROM drive, and then choose the Insert button.

    The message "Error Creating OLE Object" appears.

    NOTE: You can reproduce the same error message with the APPEND GENERAL command. To see this behavior, issue the following command:

            APPEND GENERAL mytest.genral FROM "<drive>:\<filename>.bmp"
    


Additional reference words: FoxWin buglist2.50 buglist2.50a buglist2.50b
buglist2.60 buglist2.60a 2.50 2.50a 2.50b 2.60 2.60a VFoxWin fixlist3.00
KBCategory: kbole kbprg kberrmsg kbfixlist kbbuglist
KBSubcategory: FxinteropOle
Keywords : FxinteropOle kbbuglist kberrmsg kbfixlist kbole kbprg
Version : 2.5x 2.6x
Platform : WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.