> >> 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
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