Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lost KBizness.vcx
Message
De
22/06/1998 18:09:23
Bob Lucas
The WordWare Agency
Alberta, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00110739
Message ID:
00110744
Vues:
35
>Hi,
>
>There are some forms that when are open a Dialog Box appears :
>
>Error instantiating class. Cannot find "...\kbizness.vcx"
>
>Then after locating the class, saving the form, saving the project, quitting and re-running VFP and opening again the form the message re-appears. What is wrong ?
>
>Regards,


I am very good at solving this problem because I see it so much! I don't like common30 as a path (reference to vfp 3.0) so I named mine common. I also changed codebook to cdbk so my common path is cdbk\common\libs etc. Needless to say, all the class libraries were looking somewhere else for their code, and so I would get the above notice. It usually means that the classloc field in the scx file (or vcx file) is pointing to the wrong directory. I usually create this problem myself but it has been known to happen for other reasons.

What you need to do is open the vcx or scx file that is causing the problem and browse it. Look for any classloc field which references kbizness.vcx The relative path reference starts in the directory this file is in and goes down and up to where kbizness.vcx is. So, if you directory structure is like this:

projects
codebook
common30
libs
myproject
myforms
mylibs

and you open an scx file in myforms, the reference to kbizness should be
..\..\codebook\common30\libs\kbizness.vcx
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform