|
-
April 17th, 1999, 03:39 AM
#1
Probs With Class Inheritance and Member Variables
Hi There,
I am having a lot of probs understanding classes and inheritance.
My problem is that I want to define a structure in a dialog class (DlgClass1). I then want to open a modal dialog box class (DlgClass2), and be able to see my original structure. I have had no luck making the Base Class of DlgClass2, DlgClass1. And when I use code such as
DlgClass1* MyInpFileDlg3;
MyInpFileDlg3 = (DlgClass1*)AfxGetApp();
MyInpFileDlg3->Struct.inta = 0;
I usually get a GPF when I exit the program.
Is there an easier way to make the structure a
member variable of DlgClass2. When you answer please treat me like an idiot, and tell me exactly where to define what.
Thanks Very Much
- Mark
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
|