Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exclude a library?
Message
 
À
08/07/2004 14:40:27
Koos Veel
Gamma Research
Aruba
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00922154
Message ID:
00922211
Vues:
22
>Dear all,
>
>We are using VFP 8.0 and we have to exclude a class library from an .EXE file and distribute it separately. The problem is that the classes in the library use many other classes in other libraries that are in the EXE and then the program gives an error "library not found". We cannot exclude all class libraries (too many). Anybody has a simple solution for the problem?
>
>Thanks,
>
>Koos Veel.

There's a trick that can get around this problem. It won't work in all situations, but it will work for most.

You can call a function in a PRG that's in the EXE from outside the EXE. Once you're back in the EXE, that function can call anything else in the EXE. So you want a function similar to this (untested code):
FUNCTION DoMyCommand(tcCommand as String, tcParameters)
LOCAL llReturn

llReturn = &tcCommand(&tcParameters)

return llReturn

ENDFUNC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform