Microsoft KB Archive/117620

{| = FIX: Error Creating OLE Object =
 * width="100%"|

ID: Q117620

2.5x 2.6x WINDOWS kbole

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

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.

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 " :\ .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 KBSubcategory: FxinteropOle Keywords         : kberrmsg FxinteropOle Version          : 2.5x 2.6x Platform         : WINDOWS Solution Type    : kbfix
 * }