|
-
July 14th, 1999, 10:01 AM
#1
Passing between classes
I have a dialog based application (..MainDialog). I have two other classes that handle modeless
modeless dialogs (..Dialog1, Dialog2). Well I have Dialog1* dlg1 & Dialog2* dlg2 declared in
MainDialog.h. I then call dlg1->Create() and so on to create the dialogs and so on. Well I want
to do the reverse as well. I want to make it so that when I click a button on one of the modeless
dialogs, it will change the selection on a list box on the MainDialog. I tried to create
MainDialog* dlg and then use it (dlg->...), but when I declare dlg I get errors saying that
MainDialog is not a class or namespace and then it doesn't recognize dlg1 & dlg2. Does anyone
have any idea what is wrong or how I can call functions from the two modeless dialogs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|