Click here to Skip to main content
15,905,915 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with Htmlhelp API library Pin
PJ Arends16-Mar-03 14:46
professionalPJ Arends16-Mar-03 14:46 
GeneralRe: Problems with Htmlhelp API library Pin
Dave Bryant16-Mar-03 9:13
Dave Bryant16-Mar-03 9:13 
GeneralRe: Problems with Htmlhelp API library Pin
Neville Franks16-Mar-03 9:20
Neville Franks16-Mar-03 9:20 
GeneralRe: Problems with Htmlhelp API library Pin
Dave Bryant16-Mar-03 9:22
Dave Bryant16-Mar-03 9:22 
GeneralInterdependent classes Pin
brandon187916-Mar-03 8:54
brandon187916-Mar-03 8:54 
GeneralRe: Interdependent classes Pin
Anonymous16-Mar-03 9:16
Anonymous16-Mar-03 9:16 
GeneralRe: Interdependent classes Pin
Dave Bryant16-Mar-03 9:17
Dave Bryant16-Mar-03 9:17 
GeneralRe: Interdependent classes Pin
Neville Franks16-Mar-03 9:19
Neville Franks16-Mar-03 9:19 
brandon1879 wrote:
I have a project that I need to have a class A with a member pointer to a class B; class B has a member pointer to class A. How do I mess with the header files are whatever to do this?

You need to forward declare class b. eg.

class b;

class a { ... class b* m_b; }
class b { ... class a* m_a; }

For a good discussion on #includes I recomend "Large Scale C++ Software Design" by John Lakos. published by Addison-Wesley.

Bottom line is that you should only include the minimum number of #includes that you need. Using a #include that #includes a set of include files is a bad idea. You need to minimimize dependencies so files aren't recompiled unnecessarily.


Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
GeneralRe: Interdependent classes Pin
Jambolo16-Mar-03 14:07
Jambolo16-Mar-03 14:07 
GeneralUrgent! File I/O problem Pin
williamking16-Mar-03 7:37
williamking16-Mar-03 7:37 
GeneralICM and non-sRGB color spaces Pin
Jonathan Gilligan16-Mar-03 7:07
Jonathan Gilligan16-Mar-03 7:07 
GeneralRemove BOLD FONT in all caption of control??? :( Pin
_skidrow_vn_16-Mar-03 7:04
_skidrow_vn_16-Mar-03 7:04 
GeneralRe: Remove BOLD FONT in all caption of control??? :( Pin
Christian Graus16-Mar-03 9:47
protectorChristian Graus16-Mar-03 9:47 
Generalmodless dialog Pin
xstaci16-Mar-03 6:28
xstaci16-Mar-03 6:28 
GeneralRe: modless dialog Pin
Michael Dunn16-Mar-03 7:35
sitebuilderMichael Dunn16-Mar-03 7:35 
GeneralRe: modless dialog Pin
User 665816-Mar-03 7:44
User 665816-Mar-03 7:44 
GeneralRe: modless dialog Pin
xstaci16-Mar-03 7:57
xstaci16-Mar-03 7:57 
GeneralRe: modless dialog Pin
User 665816-Mar-03 8:07
User 665816-Mar-03 8:07 
GeneralRe: modless dialog Pin
xstaci16-Mar-03 9:29
xstaci16-Mar-03 9:29 
GeneralRe: modless dialog Pin
User 665816-Mar-03 10:27
User 665816-Mar-03 10:27 
Generalremove the close, maximize and minimize buttons from a dialog Pin
d_kilshtein16-Mar-03 5:58
d_kilshtein16-Mar-03 5:58 
GeneralRe: remove the close, maximize and minimize buttons from a dialog Pin
Abbas_Riazi16-Mar-03 7:01
professionalAbbas_Riazi16-Mar-03 7:01 
GeneralRe: remove the close, maximize and minimize buttons from a dialog Pin
Florin Ochiana16-Mar-03 11:36
Florin Ochiana16-Mar-03 11:36 
GeneralWindow Class name Pin
John-theKing16-Mar-03 5:06
John-theKing16-Mar-03 5:06 
GeneralRe: Window Class name Pin
João Paulo Figueira16-Mar-03 5:21
professionalJoão Paulo Figueira16-Mar-03 5: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.