PRB: Err "Unable to find Visual Class Library" in ProjectID: Q216087
|
If the _Utility Visual class library is added to a project, the following error message displays when the project is built:
Unable to find Visual Class Library.
The _xtab Visual class in the _Utility Visual class library contains some method code that uses the NEWOBJECT() function to create a new class from the _GENXTAB system variable. The _GENXTAB system memory variable is referencing the Vfpxtab.prg program file.
Open the _xtab Visual class in the _Utility Visual class library, which is located in the \FFC folder. Once the _xtab class is open, open the Runxtab method. Change the following line of code:
oNewXtab=NEWOBJECT('genxtab',(_GENXTAB),"",;
oNewXtab=NEWOBJECT('genxtab',"Home()+"vfpxtab.prg","",;
If you choose the Ignore or Ignore all options from the error message, the project continues to build. If you choose the Locate option and add any Visual class library to the project, whether it is the correct Visual class library or not, it will be added without being checked if it already exists in the project. Therefore, you could end up with multiple instances of the Visual class library in the project, and it does not prevent the error from occurring on the next build.
Steps to Reproduce the Error
(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Dean Christopher, Microsoft Corporation.
Additional query words:
Keywords : kbVFp600bug kbFFC
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: February 9, 1999