Click here to Skip to main content
15,894,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProperty sheet and page Pin
hrishiS24-Sep-09 3:46
hrishiS24-Sep-09 3:46 
AnswerRe: Property sheet and page Pin
David Crow24-Sep-09 4:02
David Crow24-Sep-09 4:02 
GeneralRe: Property sheet and page Pin
hrishiS24-Sep-09 4:26
hrishiS24-Sep-09 4:26 
GeneralRe: Property sheet and page Pin
David Crow24-Sep-09 4:33
David Crow24-Sep-09 4:33 
GeneralRe: Property sheet and page Pin
hrishiS24-Sep-09 5:02
hrishiS24-Sep-09 5:02 
GeneralRe: Property sheet and page Pin
David Crow24-Sep-09 5:09
David Crow24-Sep-09 5:09 
GeneralRe: Property sheet and page Pin
Chuck O'Toole24-Sep-09 15:46
Chuck O'Toole24-Sep-09 15:46 
GeneralRe: Property sheet and page Pin
David Crow25-Sep-09 2:41
David Crow25-Sep-09 2:41 
GeneralRe: Property sheet and page Pin
Chuck O'Toole25-Sep-09 4:02
Chuck O'Toole25-Sep-09 4:02 
AnswerRe: Property sheet and page Pin
Chuck O'Toole25-Sep-09 4:04
Chuck O'Toole25-Sep-09 4:04 
QuestionHow to hide SIP with mutiple dialog boxes? Pin
Rushikesh12324-Sep-09 2:55
Rushikesh12324-Sep-09 2:55 
Questioni have written create process now i want to terminate process but it is not terminated Pin
prerananit24-Sep-09 2:42
prerananit24-Sep-09 2:42 
AnswerRe: i have written create process now i want to terminate process but it is not terminated Pin
Nuri Ismail24-Sep-09 2:45
Nuri Ismail24-Sep-09 2:45 
GeneralRe: i have written create process now i want to terminate process but it is not terminated Pin
CPallini24-Sep-09 3:01
mveCPallini24-Sep-09 3:01 
GeneralRe: i have written create process now i want to terminate process but it is not terminated Pin
Nuri Ismail24-Sep-09 3:14
Nuri Ismail24-Sep-09 3:14 
AnswerRe: i have written create process now i want to terminate process but it is not terminated Pin
CPallini24-Sep-09 3:02
mveCPallini24-Sep-09 3:02 
QuestionAutomatic cell change event in Excel Pin
NarVish24-Sep-09 1:59
NarVish24-Sep-09 1:59 
QuestionMFC - Passing data between dialogs in Tab Control Pin
melinda_mel24-Sep-09 1:13
melinda_mel24-Sep-09 1:13 
AnswerRe: MFC - Passing data between dialogs in Tab Control Pin
Franck Paquier24-Sep-09 1:24
Franck Paquier24-Sep-09 1:24 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
melinda_mel24-Sep-09 2:46
melinda_mel24-Sep-09 2:46 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
David Crow24-Sep-09 3:03
David Crow24-Sep-09 3:03 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
melinda_mel24-Sep-09 3:09
melinda_mel24-Sep-09 3:09 
AnswerRe: MFC - Passing data between dialogs in Tab Control Pin
Chuck O'Toole24-Sep-09 15:58
Chuck O'Toole24-Sep-09 15:58 
The real problem seems to be how you got a dialog 1 object in the dialog 2 class. Your comments seem to say to declared a variable and your reference (with .) seems to say that you instantiated a dialog 1 class inside dialog 2. So, how do you know this instantiation actually points to the dialog 1 that is being displayed.

declaring the variable does *not create the dialog window*. Clearly, to have dialog 1 displayed, somebody has to instantiate it and create it. It was probably your main program (the same one that instantiated dialog 2).

The error is saying that "the object you are referencing (dialog 1) is not a valid window" and that would be true if you never created.

Now what you want to do it obtain the *pointer to dialog 1* created by your parent / main program and store it in a local pointer in dialog 2. Then you can access it with "object_dialog1->m_list......."

Chuck
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
melinda_mel25-Sep-09 1:39
melinda_mel25-Sep-09 1:39 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
Chuck O'Toole25-Sep-09 3:48
Chuck O'Toole25-Sep-09 3:48 

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.