Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Calling Procedure In VFP exe?
Versions des environnements
I'm trying to call a procedure in a separate executable. It only appears to work if the procedure is defined in the main program of the executable. For example:
If testproc is defined in main.prg and I call it with DO testproc IN mytest.exe it works fine.
If I define testproc in myprocs.prg and set procedure to myprocs.prg in the main program of the exe, when I try DO testproc IN mytest.exe I get a "Procedure 'testproc.prg' does not exist". Looks like the "set procedure to" command does not get called in this case.
Does anyone have any suggestions for a workaround? I'm trying to create an optional "addon" to a product by creating a new exe that would try to reuse existing procedures in the "mytest.exe". mytest.exe has multiple set procedure to additive commands in it's startup. I figured that since they're already there, why bother including those procedures in the new exe. Apparently I can't unless I refactor mytest.exe.
TIA
Mike
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