Click here to Skip to main content
16,007,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionStatic Control Prob. Pls reply me Pin
TobetheWinner10-Jun-07 18:49
TobetheWinner10-Jun-07 18:49 
AnswerRe: Static Control Prob. Pls reply me Pin
Rajkumar R10-Jun-07 19:02
Rajkumar R10-Jun-07 19:02 
GeneralRe: Static Control Prob. Pls reply me Pin
TobetheWinner10-Jun-07 19:07
TobetheWinner10-Jun-07 19:07 
QuestionStatic Control Prob. Pls reply me Pin
TobetheWinner10-Jun-07 19:40
TobetheWinner10-Jun-07 19:40 
AnswerRe: Static Control Prob. Pls reply me Pin
Christian Graus10-Jun-07 20:16
protectorChristian Graus10-Jun-07 20:16 
QuestionMultithreaded download http files Pin
victording10-Jun-07 16:07
victording10-Jun-07 16:07 
QuestionAccessing the parent's data members Pin
Vancouver10-Jun-07 15:26
Vancouver10-Jun-07 15:26 
AnswerRe: Accessing the parent's data members Pin
Christian Graus10-Jun-07 16:29
protectorChristian Graus10-Jun-07 16:29 
You can put the includes in the cpp files, and then forward declare the class - so put

class CMyOnwCtl;

in the top of CMyOwnDlg.h and vice versa. This tells the compiler that a class exists, and it will find the details out during the compile process.


I should add - this works because you have a *pointer* to CMyOwnDlg in CMyOwnCtl - this is fine, all the compiler needs to do when compiling the header, is allocate space for a pointer. If you put an instance of the object in the header, it would not work.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 18:01
Vancouver10-Jun-07 18:01 
GeneralRe: Accessing the parent's data members Pin
Christian Graus10-Jun-07 18:16
protectorChristian Graus10-Jun-07 18:16 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 18:25
Vancouver10-Jun-07 18:25 
GeneralRe: Accessing the parent's data members Pin
Christian Graus10-Jun-07 18:46
protectorChristian Graus10-Jun-07 18:46 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 19:01
Vancouver10-Jun-07 19:01 
AnswerRe: Accessing the parent's data members Pin
Rajkumar R10-Jun-07 19:16
Rajkumar R10-Jun-07 19:16 
AnswerRe: Accessing the parent's data members Pin
John M. Drescher10-Jun-07 17:42
John M. Drescher10-Jun-07 17:42 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 19:07
Vancouver10-Jun-07 19:07 
GeneralRe: Accessing the parent's data members Pin
John M. Drescher11-Jun-07 21:23
John M. Drescher11-Jun-07 21:23 
QuestionConstructors Pin
tom groezer10-Jun-07 11:57
tom groezer10-Jun-07 11:57 
AnswerRe: Constructors Pin
toxcct10-Jun-07 12:04
toxcct10-Jun-07 12:04 
GeneralRe: Constructors Pin
Stephen Hewitt11-Jun-07 18:40
Stephen Hewitt11-Jun-07 18:40 
AnswerRe: Constructors Pin
Rajkumar R10-Jun-07 19:34
Rajkumar R10-Jun-07 19:34 
AnswerRe: Constructors Pin
Stephen Hewitt11-Jun-07 18:41
Stephen Hewitt11-Jun-07 18:41 
QuestionWhat is in-class constant? Pin
tom groezer10-Jun-07 11:30
tom groezer10-Jun-07 11:30 
AnswerRe: What is in-class constant? Pin
Mark Salsbery10-Jun-07 11:50
Mark Salsbery10-Jun-07 11:50 
QuestionC++ gotchas Pin
tom groezer10-Jun-07 11:12
tom groezer10-Jun-07 11:12 

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.