Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 5:31
CoolASL15-Aug-06 5:31 
AnswerRe: Interdependent classes Pin
Christian Graus15-Aug-06 2:12
protectorChristian Graus15-Aug-06 2:12 
What Maxwell said is correct, so you can put

class Class1;
class Class2;

at the top of Class3, and include the headers in the CPP, so long as Class3 returns, accepts and stores only pointers to Class1 and Class2. Then the compiler only needs to know that Class1 and Class2 exist, and that it needs to allocate storage for a pointer.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 3:58
CoolASL15-Aug-06 3:58 
GeneralRe: Interdependent classes Pin
Christian Graus15-Aug-06 11:03
protectorChristian Graus15-Aug-06 11:03 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 22:07
CoolASL15-Aug-06 22:07 
AnswerRe: Interdependent classes [modified] Pin
Zac Howland15-Aug-06 9:42
Zac Howland15-Aug-06 9:42 
GeneralRe: Interdependent classes Pin
BadKarma15-Aug-06 21:07
BadKarma15-Aug-06 21:07 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 22:09
CoolASL15-Aug-06 22:09 
GeneralRe: Interdependent classes Pin
Zac Howland16-Aug-06 5:01
Zac Howland16-Aug-06 5:01 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 22:08
CoolASL15-Aug-06 22:08 
QuestionFile reading and writing Pin
69 Bay14-Aug-06 23:51
69 Bay14-Aug-06 23:51 
AnswerRe: File reading and writing Pin
Christian Graus15-Aug-06 0:03
protectorChristian Graus15-Aug-06 0:03 
GeneralRe: File reading and writing Pin
69 Bay15-Aug-06 5:10
69 Bay15-Aug-06 5:10 
GeneralRe: File reading and writing Pin
Zac Howland15-Aug-06 9:50
Zac Howland15-Aug-06 9:50 
GeneralRe: File reading and writing Pin
69 Bay16-Aug-06 2:34
69 Bay16-Aug-06 2:34 
GeneralRe: File reading and writing Pin
Zac Howland16-Aug-06 5:05
Zac Howland16-Aug-06 5:05 
GeneralRe: File reading and writing Pin
Christian Graus15-Aug-06 11:03
protectorChristian Graus15-Aug-06 11:03 
QuestionRe: File reading and writing Pin
David Crow15-Aug-06 4:08
David Crow15-Aug-06 4:08 
AnswerRe: File reading and writing Pin
69 Bay15-Aug-06 5:05
69 Bay15-Aug-06 5:05 
QuestionIActiveDesktop Pin
Rinu_Raj14-Aug-06 23:03
Rinu_Raj14-Aug-06 23:03 
AnswerRe: IActiveDesktop [modified] Pin
Rinu_Raj14-Aug-06 23:08
Rinu_Raj14-Aug-06 23:08 
AnswerRe: IActiveDesktop Pin
Hamid_RT14-Aug-06 23:18
Hamid_RT14-Aug-06 23:18 
Questionsecurity library for Windows Mobile? Pin
George_George14-Aug-06 22:48
George_George14-Aug-06 22:48 
AnswerRe: security library for Windows Mobile? Pin
Mike Dimmick15-Aug-06 1:26
Mike Dimmick15-Aug-06 1:26 
GeneralRe: security library for Windows Mobile? Pin
George_George15-Aug-06 3:07
George_George15-Aug-06 3:07 

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.