Click here to Skip to main content
15,916,412 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing objects between dialogs MFC Pin
Erudite_Eric17-May-13 4:53
Erudite_Eric17-May-13 4:53 
AnswerRe: Passing objects between dialogs MFC Pin
David Crow17-May-13 4:51
David Crow17-May-13 4:51 
It's usually not a good idea to tie the dialogs together like that. It makes them too interdependent. Consider keeping the data in the custom class (complete with getters and setters) and creating an instance of that class in the CWinApp-derived class. Each dialog can then get access to that single instance using AfxGetApp(). This is similar to what is happening when have a document (and a view). The data, shared by the entire app, is stored in the document. When you want to access that data, you ask the document for it.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous


GeneralRe: Passing objects between dialogs MFC Pin
Erudite_Eric19-May-13 22:31
Erudite_Eric19-May-13 22:31 
QuestionFacebook Login Pin
Member 1000563216-May-13 6:37
Member 1000563216-May-13 6:37 
AnswerRe: Facebook Login Pin
ThatsAlok21-May-13 0:23
ThatsAlok21-May-13 0:23 
GeneralRe: Facebook Login Pin
Member 1000563221-May-13 0:45
Member 1000563221-May-13 0:45 
QuestionIs it the fact that using only one kind of programming language would probably restrict your capacity? Pin
rudiestf15-May-13 14:25
rudiestf15-May-13 14:25 
AnswerRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
PIEBALDconsult15-May-13 14:47
mvePIEBALDconsult15-May-13 14:47 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
enhzflep15-May-13 19:44
enhzflep15-May-13 19:44 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
rudiestf15-May-13 23:46
rudiestf15-May-13 23:46 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
jschell16-May-13 8:04
jschell16-May-13 8:04 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
jschell16-May-13 8:02
jschell16-May-13 8:02 
AnswerRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
CPallini15-May-13 21:02
mveCPallini15-May-13 21:02 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
rudiestf15-May-13 23:49
rudiestf15-May-13 23:49 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
jschell16-May-13 8:08
jschell16-May-13 8:08 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
CPallini16-May-13 9:30
mveCPallini16-May-13 9:30 
AnswerRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
Erudite_Eric16-May-13 0:24
Erudite_Eric16-May-13 0:24 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
rudiestf16-May-13 1:15
rudiestf16-May-13 1:15 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
Erudite_Eric16-May-13 7:52
Erudite_Eric16-May-13 7:52 
AnswerRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
Joe Woodbury16-May-13 6:16
professionalJoe Woodbury16-May-13 6:16 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
Erudite_Eric16-May-13 7:54
Erudite_Eric16-May-13 7:54 
AnswerRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
MicroVirus17-May-13 1:34
MicroVirus17-May-13 1:34 
GeneralRe: Is it the fact that using only one kind of programming language would probably restrict your capacity? Pin
rudiestf17-May-13 2:51
rudiestf17-May-13 2:51 
AnswerJack of many languages, and master of one (C++ in your case) Pin
Amarnath S17-May-13 7:05
professionalAmarnath S17-May-13 7:05 
Questionich ran correctly unfret2008 Visual C++ in static mode? Pin
Anthony Appleyard15-May-13 12:21
Anthony Appleyard15-May-13 12:21 

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.