Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why am I getting errors instantiating???
Message
De
21/11/2001 15:27:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Why am I getting errors instantiating???
Divers
Thread ID:
00584678
Message ID:
00584678
Vues:
60
I have an interesting problem. I have an EXE that has compiled into it all of the class libraries I use for my application...with the exception of one class that provides a custom data entry form. I do this because I essentially have one EXE with all the base functionality. And this gives me the ability to have a different/custom databases for each client, hence the different vcx's for the data entry windows.

Anyway this works great...but here is my problem. Occationally, I need to call some classes from within the custom (external vcx) data entry form, i.e., in a click event of a button, to perform some custom function. I'll use the standard CREATEOBJECT syntax and It apprears to find the class I'm calling, but it can't seem to find the classes within it. For example, suppose I want to open a custom form from within this click event, and the form is included in the external vcx, but on the form it has controls that are in the libraries that are inside the EXE. I've already set the classlibs in the EXE, i.e.,

SET CLASSLIB TO myclass IN myEXE.exe ADDITIVE

But, when I instantiate the form it can't find the class library of the objects on the form. Yet, if I place the vcx files in a folder and set a path to that folder before instantiating the form, the form comes up OK.

Why can't it find those classes in the EXE using the above command?

Thanks in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform