Click here to Skip to main content
15,892,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Calling a function from another Class [newbie question] Pin
Aescleal8-Jun-10 10:36
Aescleal8-Jun-10 10:36 
AnswerRe: Calling a function from another Class [newbie question] Pin
Garth J Lancaster8-Jun-10 11:52
professionalGarth J Lancaster8-Jun-10 11:52 
GeneralRe: Calling a function from another Class [newbie question] Pin
Schehaider_Aymen8-Jun-10 21:24
Schehaider_Aymen8-Jun-10 21:24 
QuestionBlank lines to seperate methods Pin
Steven Solberg8-Jun-10 9:03
Steven Solberg8-Jun-10 9:03 
GeneralRe: Blank lines to seperate methods Pin
David Crow8-Jun-10 9:39
David Crow8-Jun-10 9:39 
AnswerRe: Blank lines to seperate methods Pin
Richard MacCutchan8-Jun-10 11:01
mveRichard MacCutchan8-Jun-10 11:01 
GeneralRe: Blank lines to seperate methods ????????????????????????? Pin
Bram van Kampen8-Jun-10 14:24
Bram van Kampen8-Jun-10 14:24 
GeneralRe: Blank lines to seperate methods ????????????????????????? Pin
Steven Solberg8-Jun-10 21:09
Steven Solberg8-Jun-10 21:09 
This does not make a difference to the compiler, but it is easier to understand code when you look at it later on.
Like I said; I use blank lines to make the code look more logically grouped. I do use regions as well, but I don't like the hassle of having a bunch of regions nested in each other. Typically, when my screen gets too small to view all the code that belongs together I start inserting regions.

Example:
//Methods in a menu
private void btn1_onclick...
{
}
private void btn2_onclick...
{
}
private void btn3_onclick...
{
}

//Other methods or functions
private void someMethod1...
{}
private void someMethod2...
{}

edit: Oops... I'm still thinking C# lately, just act like this is correct C++ code :p
GeneralRe: Blank lines to seperate methods ????????????????????????? Pin
Richard MacCutchan8-Jun-10 22:12
mveRichard MacCutchan8-Jun-10 22:12 
QuestionMS Access Pin
rdop8-Jun-10 8:42
rdop8-Jun-10 8:42 
AnswerRe: MS Access Pin
David Crow8-Jun-10 9:37
David Crow8-Jun-10 9:37 
QuestionCode Submission Pin
Danzy838-Jun-10 7:23
Danzy838-Jun-10 7:23 
AnswerRe: Code Submission Pin
David Crow8-Jun-10 7:27
David Crow8-Jun-10 7:27 
AnswerRe: Code Submission Pin
Maximilien8-Jun-10 7:29
Maximilien8-Jun-10 7:29 
GeneralRe: Code Submission Pin
Danzy838-Jun-10 7:33
Danzy838-Jun-10 7:33 
AnswerRe: Code Submission Pin
Richard MacCutchan8-Jun-10 11:04
mveRichard MacCutchan8-Jun-10 11:04 
QuestionGetting API Messages into C++ DLL Pin
ayaz.hassan8-Jun-10 5:52
ayaz.hassan8-Jun-10 5:52 
QuestionMessage Removed Pin
8-Jun-10 3:31
Schehaider_Aymen8-Jun-10 3:31 
AnswerRe: CEdit And OnKeyDown Pin
Aescleal8-Jun-10 5:31
Aescleal8-Jun-10 5:31 
GeneralRe: CEdit And OnKeyDown Pin
Schehaider_Aymen8-Jun-10 5:51
Schehaider_Aymen8-Jun-10 5:51 
GeneralRe: CEdit And OnKeyDown Pin
Aescleal8-Jun-10 5:57
Aescleal8-Jun-10 5:57 
GeneralRe: CEdit And OnKeyDown Pin
Schehaider_Aymen8-Jun-10 6:02
Schehaider_Aymen8-Jun-10 6:02 
GeneralRe: CEdit And OnKeyDown Pin
Aescleal8-Jun-10 7:06
Aescleal8-Jun-10 7:06 
GeneralRe: CEdit And OnKeyDown [modified] Pin
Schehaider_Aymen8-Jun-10 7:26
Schehaider_Aymen8-Jun-10 7:26 
GeneralRe: CEdit And OnKeyDown Pin
Schehaider_Aymen8-Jun-10 6:22
Schehaider_Aymen8-Jun-10 6:22 

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.