Click here to Skip to main content
15,797,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC dialog member sharing? (code included) Pin
Christophocles3-Mar-04 12:12
sussChristophocles3-Mar-04 12:12 
GeneralRe: MFC dialog member sharing? (code included) Pin
BlackDice4-Mar-04 6:10
BlackDice4-Mar-04 6:10 
GeneralRe: MFC dialog member sharing? (code included) Pin
Christophocles4-Mar-04 6:44
sussChristophocles4-Mar-04 6:44 
GeneralRe: MFC dialog member sharing? (code included) Pin
monrobot134-Mar-04 6:39
monrobot134-Mar-04 6:39 
GeneralRe: MFC dialog member sharing? (code included) Pin
Christophocles4-Mar-04 6:49
sussChristophocles4-Mar-04 6:49 
GeneralRe: MFC dialog member sharing? (code included) Pin
BlackDice4-Mar-04 7:07
BlackDice4-Mar-04 7:07 
GeneralRe: MFC dialog member sharing? (code included) Pin
Christophocles4-Mar-04 8:06
sussChristophocles4-Mar-04 8:06 
GeneralRe: MFC dialog member sharing? (code included) Pin
BlackDice4-Mar-04 9:23
BlackDice4-Mar-04 9:23 
that's my fault. try changing this to this and see if it works.

CHANGE THIS:

CDlg2::CDlg2(CDlg1* pDlg, CWnd* pParent /*=NULL*/) : CDialog(CDlg2::IDD, pParent), m_pDlg1(pDlg) // New
{
//{{AFX_DATA_INIT(CDlg2)
//}}AFX_DATA_INIT
}

TO THIS:

CDlg2::CDlg2(CDlg1* pDlg, CWnd* pParent /*=NULL*/) : CDialog(CDlg2::IDD, pParent)
{
m_pDlg = pDlg;
//{{AFX_DATA_INIT(CDlg2)
//}}AFX_DATA_INIT
}

sorry about that!Frown | :(

I made my own test project real quick to make sure I had it right, so just in case you need that one let me know and I'll send it to you

If it's broken, I probably did it

bdiamond
GeneralRe: MFC dialog member sharing? (code included) Pin
Christophocles4-Mar-04 10:14
sussChristophocles4-Mar-04 10:14 
GeneralRe: MFC dialog member sharing? (code included) Pin
BlackDice4-Mar-04 10:30
BlackDice4-Mar-04 10:30 
GeneralRe: MFC dialog member sharing? (code included) Pin
Christophocles4-Mar-04 11:27
sussChristophocles4-Mar-04 11:27 
GeneralRe: MFC dialog member sharing? (code included) Pin
BlackDice5-Mar-04 4:49
BlackDice5-Mar-04 4:49 
GeneralRe: MFC dialog member sharing? (or, My Marathon Ineptitude) Pin
Christophocles5-Mar-04 5:41
sussChristophocles5-Mar-04 5:41 
GeneralRe: MFC dialog member sharing? (or My Enduring Ineptitude) Pin
Christophocles5-Mar-04 7:25
sussChristophocles5-Mar-04 7:25 
GeneralRe: MFC dialog member sharing? (or My Enduring Ineptitude) Pin
BlackDice5-Mar-04 11:43
BlackDice5-Mar-04 11:43 
GeneralRe: MFC dialog member sharing? Pin
Christophocles5-Mar-04 13:01
sussChristophocles5-Mar-04 13:01 
GeneralRe: MFC dialog member sharing? Pin
Christophocles8-Mar-04 9:01
sussChristophocles8-Mar-04 9:01 
GeneralAdvice required.... Pin
slyone3-Mar-04 11:54
slyone3-Mar-04 11:54 
GeneralRe: Advice required.... Pin
Roger Allen4-Mar-04 7:55
Roger Allen4-Mar-04 7:55 
GeneralRe: Advice required.... Pin
slyone4-Mar-04 13:02
slyone4-Mar-04 13:02 
GeneralUNWANTED DEBUG OF LIBRARY FUNCTIONS Pin
cnd120013-Mar-04 11:36
cnd120013-Mar-04 11:36 
GeneralRe: UNWANTED DEBUG OF LIBRARY FUNCTIONS Pin
Rick York3-Mar-04 12:09
mveRick York3-Mar-04 12:09 
GeneralRe: UNWANTED DEBUG OF LIBRARY FUNCTIONS Pin
Tom Larsen3-Mar-04 12:23
Tom Larsen3-Mar-04 12:23 
GeneralRe: UNWANTED DEBUG OF LIBRARY FUNCTIONS Pin
cnd120013-Mar-04 12:58
cnd120013-Mar-04 12:58 
GeneralRe: UNWANTED DEBUG OF LIBRARY FUNCTIONS Pin
Christian Graus3-Mar-04 17:47
protectorChristian Graus3-Mar-04 17:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.