Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
dusty_dex16-May-13 7:58
dusty_dex16-May-13 7:58 
GeneralRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
Erudite_Eric16-May-13 8:18
Erudite_Eric16-May-13 8:18 
QuestionPassing objects between dialogs MFC Pin
Cynizm16-May-13 7:25
Cynizm16-May-13 7:25 
AnswerRe: Passing objects between dialogs MFC Pin
Erudite_Eric16-May-13 8:05
Erudite_Eric16-May-13 8:05 
GeneralRe: Passing objects between dialogs MFC Pin
Cynizm16-May-13 9:52
Cynizm16-May-13 9:52 
GeneralRe: Passing objects between dialogs MFC Pin
_Flaviu16-May-13 22:05
_Flaviu16-May-13 22:05 
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 

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.