mr_ped Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
Experienced Contributor
I case you go for quick hack I would rather test the pointer of object with &createDlg memory address, than title strings.
But where do you need these tests? Maybe you can avoid this completely (even with same class for both dialogs, or with very simple two wrapper classes derived from original class with just few functions overloaded).
Usually every time you finish writing some code, you can immediately write "second" version which will be much better.