PRB: APPEND GENERAL CLASS PBRUSH Halts FoxPro Under WIN95

ID: Q154309

2.60a WINDOWS kbinterop kbole kbusage kbprb

The information in this article applies to:

SYMPTOMS

If you run FoxPro for Windows version 2.6a under Windows 95, the application stops responding when you issue an APPEND GENERAL to insert an OLE object in a GENERAL field.

For example, when you issue the command below, FoxPro halts and you may have to END TASK to shut down FoxPro:

   APPEND GENERAL <general field name> FROM <bitmap.bmp> CLASS "PBRUSH"

If you issue the following command to insert a BMP into a GENERAL field, FoxPro stops responding also:

   APPEND GENERAL <TABLENAME>.<FIELDNAME> FROM "BITMAP FILE NAME.BMP" ;
      CLASS "PBRUSH" LINK

CAUSE

This error occurs because the CLASS name for the Paint program under Windows 95, currently called MSPAINT.EXE, has been changed to PAINT.PICTURE.

RESOLUTION

Issue the same command as before, but replace the CLASS "PBRUSH" clause with CLASS "PAINT.PICTURE." For example:

   APPEND GENERAL <TABLENAME>.<FIELDNAME> FROM "BITMAP FILE NAME.BMP";
     CLASS "PAINT.PICTURE" LINK

STATUS

This behavior is by design.

MORE INFORMATION

If you issue the same command without specifying the CLASS clause, it still works fine. You do not have to use the CLASS clause if the object file extension is the default, such as BMP for bitmap object files.

KBCategory: kbinterop kbusage kbole kbprb KBSubcategory: FxinteropOle Additional reference words: 2.60a foxwin APPEND GENERAL win95 ole object

Keywords          : FxinteropOle 
Version           : 2.60a
Platform          : WINDOWS

Last Reviewed: January 10, 1997