Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: confused about the syntax in the header file Pin
Stephen Hewitt16-May-06 20:43
Stephen Hewitt16-May-06 20:43 
General[Message Deleted] Pin
ppatel56716-May-06 19:52
ppatel56716-May-06 19:52 
GeneralRe: confused about the syntax in the header file Pin
grigsoft16-May-06 20:22
grigsoft16-May-06 20:22 
GeneralRe: confused about the syntax in the header file Pin
Stephen Hewitt16-May-06 20:32
Stephen Hewitt16-May-06 20:32 
GeneralRe: confused about the syntax in the header file Pin
Maxwell Chen16-May-06 20:34
Maxwell Chen16-May-06 20:34 
GeneralRe: confused about the syntax in the header file Pin
Maxwell Chen16-May-06 20:30
Maxwell Chen16-May-06 20:30 
AnswerRe: confused about the syntax in the header file Pin
ThatsAlok16-May-06 21:14
ThatsAlok16-May-06 21:14 
AnswerRe: confused about the syntax in the header file Pin
Russell'17-May-06 3:55
Russell'17-May-06 3:55 
This kind of declaration is used to help the compiler to understand what string used into the code are sintax errors or objects that are somewhere defined.
I'll try to find a way to explain this to you with two examples,... and remember that the compiler will read the code in the same way of you, i.e. from top to bottom:

First case: the error!
class classA{<br />
classB b; //The compiler tells: What is classB? I don't know this.:(... => Error <br />
}<br />
class classB{ //Compiler interrupted:(, this isn't readed!<br />
...<br />
}


Second case: OK

class classB; //You are telling to the compiler: wait a moment, the definition of this class will came later<br />
class classA{<br />
classB b; //The compiler tells: What is classB? I don't know how it is build, but I know that it exist  and it isn't a sintax error. So I can continue!<br />
}<br />
<br />
//The compiler tells: Yahoooo:-D, now I will know what classB is!!<br />
class classB{<br />
...<br />
}


Hope be clear
QuestionIkon in list control Pin
vazhapillyjohn16-May-06 18:46
vazhapillyjohn16-May-06 18:46 
AnswerRe: Ikon in list control Pin
iLL eFFect16-May-06 19:44
iLL eFFect16-May-06 19:44 
QuestionKey stroke watching Pin
Nishad S16-May-06 18:36
Nishad S16-May-06 18:36 
AnswerRe: Key stroke watching Pin
Nibu babu thomas16-May-06 18:49
Nibu babu thomas16-May-06 18:49 
GeneralRe: Key stroke watching Pin
Nishad S16-May-06 18:54
Nishad S16-May-06 18:54 
GeneralRe: Key stroke watching Pin
Nibu babu thomas16-May-06 18:59
Nibu babu thomas16-May-06 18:59 
GeneralRe: Key stroke watching Pin
Nishad S16-May-06 19:06
Nishad S16-May-06 19:06 
GeneralRe: Key stroke watching Pin
Nibu babu thomas16-May-06 19:17
Nibu babu thomas16-May-06 19:17 
GeneralRe: Key stroke watching Pin
Nishad S16-May-06 19:21
Nishad S16-May-06 19:21 
QuestionCArray memory issue Pin
mohanrajh16-May-06 18:15
mohanrajh16-May-06 18:15 
AnswerRe: CArray memory issue Pin
Christian Graus16-May-06 18:24
protectorChristian Graus16-May-06 18:24 
GeneralRe: CArray memory issue Pin
NiceNaidu16-May-06 18:36
NiceNaidu16-May-06 18:36 
AnswerRe: CArray memory issue Pin
Laxman Auti16-May-06 18:29
Laxman Auti16-May-06 18:29 
AnswerRe: CArray memory issue Pin
grigsoft16-May-06 19:08
grigsoft16-May-06 19:08 
QuestionRe: CArray memory issue Pin
mohanrajh17-May-06 15:08
mohanrajh17-May-06 15:08 
AnswerRe: CArray memory issue Pin
grigsoft17-May-06 20:55
grigsoft17-May-06 20:55 
Questionstring.. Pin
Prinz Ryoiji16-May-06 18:08
Prinz Ryoiji16-May-06 18:08 

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.