Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a file to a Project
Message
De
08/02/2004 20:47:51
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
08/02/2004 17:04:55
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00875277
Message ID:
00875302
Vues:
23
Hi Henry

There is little need to rebuild everything every time. I've seen many people with this bad habit and just like every other bad habit, they don't change just because there's good reason to change.

I build exe's all the time and ship them to clients without any problems. Test your exe's to ensure new features are included. If they are not, then somehow the programs didn't recompile when saved. Repeat the steps outlined below. Manually do a rebuild project (NOT COMPILE EXE), but tell it to recompile all files. This should rarely be necessary.

Open any .PRG file with MODIFY COMMAND. Click Edit on the menu. Go down to properties and check Compile before saving. Check Apply to .PRG files and check Save preferences. Click OK. From now on, anytime you edit a program it should compile automatically.

Now as to this program you want included in the exe...

Add this to the bottom of your main .PRG for the project:

PROCEDURE PMFAKEOUT
EXTERNAL PROCEDURE WHATEVER
ENDPROC

"Whatever" refers to the program name. When you rebuild project (without recompiling anything), the program should be included in the project. It will get put into the exe when you compile.

HTH

>Hi Sergey:

>
>>As I said, it depends wich way you want to go. If you use 'modify project' command, don't use 'build project' anymore.
>
>The modify project command is used in the command window during development. And that was only to open mcm.pjx to add the prg file that is called only wfrom within the SDT table.
>
>>If you stick with 'build project' command, add that PRG to the BUILD PROJECT command.
>
build project mcm recompile from start.prg, whatever.prg
>
>And the project would be built and includes the prg file that I was trying to add? Should a path be given?
>
>>BTW, is there any reason you're rebuilding your project every time?
>
>Not sure Sergey. This code is part of an update program, which builds and updated exe file which can be shipped to the user. This code was written by another person, some years ago. What is your suggestion?
>
>Thanks Sergey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform