PRB: Error Message "<library>.vcx Is Not an Object File"

Last reviewed: January 22, 1997
Article ID: Q162368
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0
  • Microsoft Visual FoxPro for Macintosh, version 3.0b

SYMPTOMS

If you add an existing Visual FoxPro for Windows 3.0 .vcx class library file into a Visual FoxPro for Windows 5.0 project and attempt to modify an element of the library, you may get the following error message:

   <path\library>.vcx is not an object file.

RESOLUTION

Create a copy of the Visual FoxPro for Windows 3.0 class library .vcx file, and then type the following in the command window:

   COMPILE CLASSLIB <path\library>.vcx

STATUS

This behavior is by design.

MORE INFORMATION

Compile Classlib compiles source code contained in a memo field named Methods, and becomes compiled into object code that is stored in a memo field named OBJCODE.

Source code for class libraries, stored procedures, and forms are stored in memo fields either in the .vcx file table, the .dbc file table, or the .scx file table. When each is compiled, the object code is placed into a separate memo field. This object code is specific to the FoxPro version.

NOTE: Forms are automatically compiled when they are saved from the Form Designer. If you open a Visual FoxPro for Windows 5.0 form in Visual FoxPro for Windows 3.0, you will receive the following error message:

   Error loading file - Methods - record number 2. Object file from
   <path\form>.scx was compiled in a previous version of FoxPro.

(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Perry Newton, Microsoft Corporation

REFERENCES

For additional information, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q162076
   TITLE     : INF: Conversion of VFP Files From Version 3.0 to 5.0 and
               Back


KBCategory: kbusage kberrmsg kbprb
KBSubcategory: FxprgClassoop FxtoolFormdes FxtoolProjman
Additional reference words: 3.00 3.00b 5.00 vfoxwin vfoxmac kbdsd




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