Click here to Skip to main content
15,910,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Project Help Pin
David Crow27-Apr-06 9:51
David Crow27-Apr-06 9:51 
GeneralRe: Project Help Pin
Door Mat27-Apr-06 10:24
Door Mat27-Apr-06 10:24 
QuestionRe: Project Help Pin
David Crow27-Apr-06 10:44
David Crow27-Apr-06 10:44 
QuestionEvil Circular dependency problem Pin
chasetoys27-Apr-06 9:16
chasetoys27-Apr-06 9:16 
AnswerRe: Evil Circular dependency problem Pin
David Crow27-Apr-06 9:48
David Crow27-Apr-06 9:48 
GeneralRe: Evil Circular dependency problem Pin
chasetoys27-Apr-06 9:50
chasetoys27-Apr-06 9:50 
GeneralRe: Evil Circular dependency problem Pin
David Crow27-Apr-06 9:53
David Crow27-Apr-06 9:53 
GeneralRe: Evil Circular dependency problem Pin
Rilhas29-Apr-06 13:54
Rilhas29-Apr-06 13:54 
I don't know if my comments will help, or add anything to DavidCrow's reference, but here it is anyway.

In my include files I am able to control their contents. I don't know if you can define the contents of "foo.h" and "bar.h", but if you can try the following:

foo.h
struct Foo_Struct {
// Bar_Struct* bar; // wrong, Bar_Struct is not known yet
struct Bar_Struct* bar; // correct, compiler knows Bar_Struct is a struct
};



bar.h
struct Bar_Struct {
// Foo_Struct* foo; // wrong, Foo_Struct is not known yet
struct Foo_Struct* foo; // correct, compiler knows Foo_Struct is a struct
};



This will work as long as the type is known but it is not used. If you tried "struct Bar_Struct bar" instead of "struct Bar_Struct* bar" it would not work unless struct Bar_Struct is fully known at the time ("bar.h" would have to be included first). You can have one of the files declare one of the structs (by correctly selecting the inclusion order), but there is no easy way to have both if none of them is a pointer. The same applies to classes, obviously.

Rilhas
QuestionApplication stay on top of another application (not all windows) Pin
pince27-Apr-06 7:49
pince27-Apr-06 7:49 
AnswerRe: Application stay on top of another application (not all windows) Pin
David Crow27-Apr-06 8:16
David Crow27-Apr-06 8:16 
GeneralRe: Application stay on top of another application (not all windows) Pin
pince27-Apr-06 9:01
pince27-Apr-06 9:01 
GeneralRe: Application stay on top of another application (not all windows) Pin
David Crow27-Apr-06 9:26
David Crow27-Apr-06 9:26 
GeneralRe: Application stay on top of another application (not all windows) Pin
pince27-Apr-06 12:12
pince27-Apr-06 12:12 
Questionhow to make your edit control accept only capital letters Pin
elephantstar27-Apr-06 6:45
elephantstar27-Apr-06 6:45 
AnswerRe: how to make your edit control accept only capital letters Pin
toxcct27-Apr-06 6:54
toxcct27-Apr-06 6:54 
GeneralRe: how to make your edit control accept only capital letters Pin
elephantstar27-Apr-06 7:41
elephantstar27-Apr-06 7:41 
AnswerRe: how to make your edit control accept only capital letters Pin
valikac27-Apr-06 7:03
valikac27-Apr-06 7:03 
AnswerRe: how to make your edit control accept only capital letters Pin
Michael Dunn27-Apr-06 19:56
sitebuilderMichael Dunn27-Apr-06 19:56 
Questiongetline / file position Pin
ldsdbomber27-Apr-06 5:45
ldsdbomber27-Apr-06 5:45 
AnswerRe: getline / file position Pin
David Crow27-Apr-06 5:48
David Crow27-Apr-06 5:48 
QuestionConnecting to remote (LAN) computer using UNC Pin
Mike the Red27-Apr-06 5:28
Mike the Red27-Apr-06 5:28 
QuestionRe: Connecting to remote (LAN) computer using UNC Pin
David Crow27-Apr-06 5:46
David Crow27-Apr-06 5:46 
AnswerRe: Connecting to remote (LAN) computer using UNC Pin
Mike the Red27-Apr-06 6:01
Mike the Red27-Apr-06 6:01 
QuestionRe: Connecting to remote (LAN) computer using UNC Pin
David Crow27-Apr-06 6:36
David Crow27-Apr-06 6:36 
QuestionRe: Connecting to remote (LAN) computer using UNC Pin
Mike the Red27-Apr-06 7:31
Mike the Red27-Apr-06 7:31 

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.