PRB: APPEND GENERAL CLASS PBRUSH Halts FoxPro Under WIN95

Last reviewed: January 9, 1997
Article ID: Q154309
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.6a

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



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: January 9, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.