Click here to Skip to main content
16,004,974 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ListCtrl Pin
Steve Echols3-Aug-06 18:04
Steve Echols3-Aug-06 18:04 
GeneralRe: ListCtrl Pin
Hamid_RT3-Aug-06 22:48
Hamid_RT3-Aug-06 22:48 
Questionvariable Pin
With_problem3-Aug-06 16:19
With_problem3-Aug-06 16:19 
AnswerRe: variable Pin
Christian Graus3-Aug-06 17:06
protectorChristian Graus3-Aug-06 17:06 
GeneralRe: variable Pin
With_problem3-Aug-06 17:31
With_problem3-Aug-06 17:31 
GeneralRe: variable Pin
Christian Graus3-Aug-06 18:06
protectorChristian Graus3-Aug-06 18:06 
AnswerRe: variable Pin
Hamid_RT4-Aug-06 8:05
Hamid_RT4-Aug-06 8:05 
QuestionCyclical References HELP! Pin
Jethro633-Aug-06 16:09
Jethro633-Aug-06 16:09 
Greetings:

This is probably the most sophomoric question I have ever posted but this situation constantly comes up for me and I would like to know what the accepted method is for resolving it:

I have created two structures. They can contain all manner of member data but each one contains a pointer of the OTHER structure type. I'm sure that made very little sense, so here's a simple example:

<br />
typedef	struct<br />
{<br />
	AnotherClass*	pAN;<br />
}	OneClass;<br />
<br />
typedef struct<br />
{<br />
	OneClass*	pOC;<br />
}	AnotherClass;<br />


I'm using Visual Studio 2003. The compiler won't build this because the definition of "OneClass" includes a pointer to "AnotheClass". But "AnotherClass" is not defined yet. I assume that this is because the compiler compiles from the top down and doesn't know about "AnotherClass" when its trying to process "OneClass".

I'm pretty sure that there are classes out there that are part of large, professional level frameworks and libraries that contain these kinds of cyclical references and somehow the compiler doesn't seem to mind.

Correct me if I'm wrong...
Thank you,
Mark
AnswerRe: Cyclical References HELP! Pin
Christian Graus3-Aug-06 16:17
protectorChristian Graus3-Aug-06 16:17 
AnswerRe: Cyclical References HELP! Pin
sambhu_prasad3-Aug-06 19:55
sambhu_prasad3-Aug-06 19:55 
QuestionDelete all files in a folder Pin
Nacho Chip3-Aug-06 13:29
Nacho Chip3-Aug-06 13:29 
AnswerRe: Delete all files in a folder Pin
Joe Woodbury3-Aug-06 15:42
professionalJoe Woodbury3-Aug-06 15:42 
AnswerRe: Delete all files in a folder Pin
Zac Howland3-Aug-06 15:47
Zac Howland3-Aug-06 15:47 
AnswerRe: Delete all files in a folder Pin
Hamid_RT3-Aug-06 22:57
Hamid_RT3-Aug-06 22:57 
QuestionLaunching EXEs don't work [modified] Pin
Aleyer3-Aug-06 11:25
Aleyer3-Aug-06 11:25 
AnswerRe: Launching EXEs don't work Pin
RChin3-Aug-06 12:45
RChin3-Aug-06 12:45 
GeneralRe: Launching EXEs don't work [modified] Pin
Aleyer4-Aug-06 4:38
Aleyer4-Aug-06 4:38 
Questionostream [modified] Pin
FredrickNorge3-Aug-06 10:14
FredrickNorge3-Aug-06 10:14 
AnswerRe: ostream Pin
Zac Howland3-Aug-06 11:16
Zac Howland3-Aug-06 11:16 
GeneralRe: ostream Pin
FredrickNorge3-Aug-06 11:22
FredrickNorge3-Aug-06 11:22 
QuestionEnvirontment Variables Pin
Jay033-Aug-06 9:45
Jay033-Aug-06 9:45 
AnswerRe: Environtment Variables Pin
Chris Losinger3-Aug-06 10:00
professionalChris Losinger3-Aug-06 10:00 
GeneralRe: Environtment Variables Pin
Jay033-Aug-06 10:08
Jay033-Aug-06 10:08 
GeneralRe: Environtment Variables Pin
Chris Losinger3-Aug-06 10:28
professionalChris Losinger3-Aug-06 10:28 
QuestionPreTranslateMessage and WM_SETFOCUS Pin
Jim Crafton3-Aug-06 9:29
Jim Crafton3-Aug-06 9:29 

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.