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

C / C++ / MFC

 
GeneralRe: Oracle 8i ODBC driver [modified] Pin
Charlie Curtis1-Nov-06 19:07
Charlie Curtis1-Nov-06 19:07 
QuestionClass x needs defining before class y, circular dependecy Pin
Ylis1-Nov-06 11:04
Ylis1-Nov-06 11:04 
AnswerRe: Class x needs defining before class y, circular dependecy Pin
Waldermort1-Nov-06 11:17
Waldermort1-Nov-06 11:17 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Ylis1-Nov-06 11:42
Ylis1-Nov-06 11:42 
AnswerRe: Class x needs defining before class y, circular dependecy Pin
Zac Howland1-Nov-06 11:36
Zac Howland1-Nov-06 11:36 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Ylis1-Nov-06 11:46
Ylis1-Nov-06 11:46 
AnswerRe: Class x needs defining before class y, circular dependecy Pin
led mike1-Nov-06 11:54
led mike1-Nov-06 11:54 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Ylis1-Nov-06 12:12
Ylis1-Nov-06 12:12 
Okay, I'l try my best to describe the problem more precisely. Before I go into further details, this is an implementation of a scene graph holding a quad tree, something used in graphics programming in order to arrange elements in space to avoid sending unnecesary data to the graphics card.

First of all there's CScene, which represents the scene graph. CScene holds a tree of nodes and functionality for inserting in that tree and manipulating it. Since this tree can hold a lot of diffrent types of nodes, I need to just define a very loose interface for the minimum required functionality of a node that needs to be implemented ( such as Update, Render, AddChild etc ). That interface is called CNodeInterface. When CScene is created it will create the upper elements of the tree with CQuads, this is to create the quad tree. This is how it could look for example:
ROOT
 |
 |---Quad 1
 |     |
 |     |---Quad 1.1
 |           |
 |           |---Player
 |                  |
 |                  |---Sword
 |
 |---Quad 2
 |---Quad 3
 |---Quad 4
 |


In order to save space I've left out nodes under Quad 2, 3 and 4 as well as 3 sub quads under Quad 1. Player and Sword implements CNodeInterface.

Thankful for any help Smile | :)
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Waldermort1-Nov-06 13:54
Waldermort1-Nov-06 13:54 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
led mike2-Nov-06 4:58
led mike2-Nov-06 4:58 
QuestionWindow messages [modified] Pin
Waldermort1-Nov-06 9:58
Waldermort1-Nov-06 9:58 
AnswerRe: Window messages Pin
PJ Arends1-Nov-06 19:22
professionalPJ Arends1-Nov-06 19:22 
AnswerRe: Window messages Pin
Michael Dunn1-Nov-06 20:09
sitebuilderMichael Dunn1-Nov-06 20:09 
Questionall Slider objects are sending OnHScroll() msg Pin
aquawicket1-Nov-06 9:46
aquawicket1-Nov-06 9:46 
AnswerRe: all Slider objects are sending OnHScroll() msg Pin
Mark Salsbery1-Nov-06 10:03
Mark Salsbery1-Nov-06 10:03 
GeneralRe: all Slider objects are sending OnHScroll() msg Pin
aquawicket1-Nov-06 14:49
aquawicket1-Nov-06 14:49 
QuestionMFC - creating invisible window Pin
edvintas1-Nov-06 6:58
edvintas1-Nov-06 6:58 
AnswerRe: MFC - creating invisible window Pin
led mike1-Nov-06 6:59
led mike1-Nov-06 6:59 
GeneralRe: MFC - creating invisible window Pin
edvintas1-Nov-06 7:53
edvintas1-Nov-06 7:53 
AnswerRe: MFC - creating invisible window Pin
Mark Salsbery1-Nov-06 7:15
Mark Salsbery1-Nov-06 7:15 
AnswerRe: MFC - creating invisible window Pin
David Crow1-Nov-06 7:21
David Crow1-Nov-06 7:21 
QuestionRe: MFC - creating invisible window Pin
Chris Meech1-Nov-06 7:26
Chris Meech1-Nov-06 7:26 
AnswerRe: MFC - creating invisible window Pin
edvintas1-Nov-06 7:48
edvintas1-Nov-06 7:48 
GeneralRe: MFC - creating invisible window Pin
led mike1-Nov-06 8:06
led mike1-Nov-06 8:06 
QuestionRe: MFC - creating invisible window Pin
Chris Meech1-Nov-06 8:28
Chris Meech1-Nov-06 8:28 

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.