Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>>With all of your suggestions and responses I'm now completely baffled. So, I'm going to try to be as explicit as possible with this next attempt :) I'm trying to replicate what I think you are suggesting I do.
>>
>>I've created a project called Testprocs. In it I have two programs in the "Code" tab as follows:
>>
>>1) the main startup program is named "testprocsmain.prg" and has:
>>
>>PROCEDURE setprocs
>> SET PROCEDURE TO testprocs.prg ADDITIVE
> if "TESTPROCS"$set("Procedure")
>> WAIT WINDOW NOWAIT "Procedures set..." TIMEOUT 4
> else
> wait wind "Procedures NOT set..."
> endif
>>ENDPROC
>>
>>PROCEDURE sayit2
>> WAIT WINDOW TIMEOUT 4 "Sayit2 Procedure was called..."
>>ENDPROC
>>
>>2) another program named "testprocs.prg" that has:
>>
>>PROCEDURE sayit
>> WAIT WINDOW TIMEOUT 4 "Sayit Procedure was called..."
>>ENDPROC
>>
>>
>>I build the project as a "Win32 executable" named Testme.exe.
>>
>>From the VFP command window, I try:
>>
>>"DO setprocs IN Testme.exe" (without quotes), and the wait window appears indicating that the procedures are set.
>
>Next try "DO sayit" (without quotes, NO in clause)
Thanks, I figured it out before your last hint above.
The thing is, am I really saving any resources this way? What's the difference if I call a "stub" in exe1 from exe2 versus placing the SET PROCEDURE... command in exe2?
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