Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET PROCEDURE and SET CLASSLIB
Message
 
À
13/02/2008 15:36:59
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01292307
Message ID:
01292391
Vues:
35
>>>If my.vcx is included in EXE, SET CLASSLIB will use it regardless of path specified.
>>>
>>>>My question is, if I have SET CLASSLIB TO q:\abc\my.vcx, this location or file is not going to be on
>>>>the runtime PC.
>>>>
>>>>I have a small project with both VCX's and PRG based classes. The classes are in a subfolder called 'Classes'
>>>>and the PRG's are in a folder called 'Programs'.
>>>>
>>>>The app object automatically does a SET CLASSLIB or SET PROCEDURE for each file in the folder.
>>>>
>>>>When I run the EXE, which is not in the same location as devolpment, the class is not found.
>>
>>
>>That's what I thought. The problem is that my code does an ADIR() for each file, then loops thru the array
>>and SET's CLASSLIB to each VCX. Since the file are not there on the client, the SET CLASSLIB never happens.
>>
>>So, since the path is ignored in runtime, I can hardcode in the development path?
>
>MaxFrame has already handled this. As a class is created via the project manager, it will be added to a PROCEDURE PMIncludeFiles in the your ??main.prg. This ensures that even if you destroy and recreate your project file, the classes will be brought in and therefore compiled into the exe.

This is a different app, not based on VMP.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform