>This will work, as long as the loProgress object has a method named Update(). It introduce thight coupling between the objects because each object need to know something about the other.
THis is true... but, we are talking about VFP which doesn't allow you to Raise events nor does it support callbacks.
The other thing that could be done would be to use an MS Message Queue... the COM server could post progress messages... The UI side could elect to receive those messages or NOT.
But, I always had a problem with tight coupling... and I think this is not the case in this instance. Update() is the public interface to the progress dialog... So, are you saying ANY process that uses the ProgressBar class is tightly coupled to it?
BOb
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