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
- Insert a CD-ROM containing bitmaps or .AVI files in the CD-ROM drive.
- At the FoxPro for Windows Command window, issue the following commands:
CREATE TABLE MYTEST (genral g)
APPEND BLANK
MODIFY GENERAL mytest.genral
- From the Edit menu, choose Insert Object.
- 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"
|