Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
>>>>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.
OK. You can use the same technique in non-vmp apps. After all it's still VFP :)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement