Hi,
Is it possible to declare a friend class between two dialogs without having to subclass them?
Thanks for any help,
Jay
Printable View
Hi,
Is it possible to declare a friend class between two dialogs without having to subclass them?
Thanks for any help,
Jay
Good Evening (where I am),
I presume you wish to do this in Designer. In the Object Explorer, make sure you choose the dialog which is going to grant access. Go to the Members tab and down to 'Class Variables'.
Add a "new variable" in public or protected (I don't believe it matters) that looks something like this:
where "friend class OtherDialogClass" is the variable name. This should work fine.Code:
public: friend class OtherDialogClass;
Cheers,
Math
Thank you. Worked like a charm!
Jay