Re: sharing variables between dialog boxes
- From: "GT" <ContactGT_remove_@xxxxxxxxxxx>
- Date: Wed, 7 Feb 2007 10:15:22 -0000
"Scot T Brennecke" <ScotB@xxxxxxxxxxxxxxxxxx> wrote in message
news:OUxIk5mSHHA.4872@xxxxxxxxxxxxxxxxxxxxxxx
I disagree. As Joe pointed out, you are breaking the rules of
encapsulation (forcing the second dialog to be aware of the needs of the
first dialog). The solution that Joe and I both gave is a reliable
maintainable pattern to follow.
No it was me that pointed out that your way breaks encapsulation and Joe
agreed - you have one class directly accessing the private members of
another class. However, as Joe correctly pointed out, a quick get and set
method easily solves the encapsulation problem for anyone with OO hangups!
My way does not break encapsulation at all - a pointer to a local variable
is passed from one operation to the second dialog. This is also an easily
maintainable solution.
Anyway, I have quite happy with your alternative way. Seems perfectly
reasonable, although personally I still think it is way too much work for 1
string modify!
GT
.
- References:
- Re: sharing variables between dialog boxes
- From: Joseph M . Newcomer
- Re: sharing variables between dialog boxes
- From: GT
- Re: sharing variables between dialog boxes
- From: Joseph M . Newcomer
- Re: sharing variables between dialog boxes
- From: GT
- Re: sharing variables between dialog boxes
- From: Scot T Brennecke
- Re: sharing variables between dialog boxes
- Prev by Date: How to stop text resizing in CDHtmlDialog
- Next by Date: how to change PROPSHEETPAGE_V3 to V2?
- Previous by thread: Re: sharing variables between dialog boxes
- Next by thread: Re: sharing variables between dialog boxes
- Index(es):