Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resolving project unknown references
Message
De
26/06/1997 16:11:38
 
 
À
26/06/1997 13:16:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00037784
Message ID:
00037862
Vues:
48
> >> In one of my application, I have a main EXE which is calling other sub > >> EXEs. Some main functions are part of the main EXE but we use them in > the > >> sub EXEs. When we compile those EXEs, we have unknown references, which > is > >> normal because the project manager can't see those functions because > they > >> are in the main EXE. > >> > >> What would be an easy way to avoid that? > > > >You can create a PRG for each function and include the PRGs in each > project. > >At least during development. > > But, if I create that prg which will include all the functions with no line > of code in them like this: > > FUNCTION MyFunction1 > > FUNCTION MyFunction2 > > ... > > will this still allow my current application to able to run the code from > my main EXE instead of calling those empty functions? It seems my English is really bad. What I meant is : Let's supppose you have 3 functions (Function1,Function2,Function3). You will create Function1.prg, Function2.prg and Function3.prg. Each *.prg will contain the function code (including the parameters clause). After that just add to the main and child projects the files. Of course, if you change the code in one (or more) functions, you'll have to re-compile both projects. I know, is not a very elegant solution, but it will work. Sorin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform