Click here to Skip to main content
16,005,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Questions about defining a funciton Pin
nachilau18-Mar-04 10:26
nachilau18-Mar-04 10:26 
GeneralRe: Questions about defining a funciton Pin
David Crow18-Mar-04 9:11
David Crow18-Mar-04 9:11 
GeneralRe: Questions about defining a funciton Pin
nachilau18-Mar-04 9:23
nachilau18-Mar-04 9:23 
GeneralRe: Questions about defining a funciton Pin
David Crow18-Mar-04 9:31
David Crow18-Mar-04 9:31 
GeneralRe: Questions about defining a funciton Pin
Michael Dunn18-Mar-04 15:01
sitebuilderMichael Dunn18-Mar-04 15:01 
GeneralHELP! .dbf header problem Pin
BlackDice18-Mar-04 7:15
BlackDice18-Mar-04 7:15 
GeneralEditbox unicode solved Pin
Demian Panello18-Mar-04 7:06
Demian Panello18-Mar-04 7:06 
GeneralCircular dependency Pin
bisquic18-Mar-04 6:58
bisquic18-Mar-04 6:58 
Is it possible to have a class instantiate a second class in it's constructor by passing a "this" pointer to the second class? And then have the second class hold and use the pointer to the first class? I believe this is causing a circular dependency and I don't know how to get around it. In other words, class A includes a header file for class B. Class A then instantiates a new class B in its constructor like this: B* classB = new B(this). Class B then needs to include the header file for class A so that it can hold a pointer to it and call functions on it via this pointer. I've tried using forward declarations, but I get an error saying that class so-and-so is undefined. Is there any way to do this or do I need to rethink my code?
GeneralRe: Circular dependency Pin
Maximilien18-Mar-04 7:08
Maximilien18-Mar-04 7:08 
GeneralRe: Circular dependency Pin
bisquic18-Mar-04 7:18
bisquic18-Mar-04 7:18 
GeneralRe: Circular dependency Pin
jmkhael18-Mar-04 7:23
jmkhael18-Mar-04 7:23 
GeneralRe: Circular dependency Pin
Maximilien18-Mar-04 7:28
Maximilien18-Mar-04 7:28 
GeneralRe: Circular dependency Pin
bisquic18-Mar-04 7:37
bisquic18-Mar-04 7:37 
GeneralRe: Circular dependency Pin
Ian Darling18-Mar-04 23:06
Ian Darling18-Mar-04 23:06 
GeneralEditBox Unicode Pin
Demian Panello18-Mar-04 6:40
Demian Panello18-Mar-04 6:40 
GeneralRe: EditBox Unicode Pin
Alexander M.,18-Mar-04 9:16
Alexander M.,18-Mar-04 9:16 
GeneralRe: EditBox Unicode Pin
Prakash Nadar18-Mar-04 14:28
Prakash Nadar18-Mar-04 14:28 
GeneralRe: EditBox Unicode Pin
Prakash Nadar18-Mar-04 14:32
Prakash Nadar18-Mar-04 14:32 
Questionhow to represent a dynamic graph layout with c++??? Pin
rockrox8018-Mar-04 6:38
rockrox8018-Mar-04 6:38 
AnswerRe: how to represent a dynamic graph layout with c++??? Pin
Prakash Nadar18-Mar-04 14:26
Prakash Nadar18-Mar-04 14:26 
Questionhow to check a radio box Pin
Deepak Samuel18-Mar-04 6:07
Deepak Samuel18-Mar-04 6:07 
AnswerRe: how to check a radio box Pin
RChin18-Mar-04 6:09
RChin18-Mar-04 6:09 
AnswerRe: how to check a radio box Pin
David Crow18-Mar-04 6:34
David Crow18-Mar-04 6:34 
QuestionHow does a project work? Pin
Anonymous18-Mar-04 6:03
Anonymous18-Mar-04 6:03 
AnswerRe: How does a project work? Pin
David Crow18-Mar-04 6:43
David Crow18-Mar-04 6:43 

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.