Click here to Skip to main content
16,011,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: StretchBlt - logical units ? Pin
Graham Shanks2-Jun-08 4:36
Graham Shanks2-Jun-08 4:36 
AnswerRe: StretchBlt - logical units ? Pin
Hamid_RT3-Jun-08 1:21
Hamid_RT3-Jun-08 1:21 
GeneralRe: StretchBlt - logical units ? Pin
TalSt4-Jun-08 19:59
TalSt4-Jun-08 19:59 
QuestionUsing Braces in C++ [modified] Pin
Queeny2-Jun-08 3:02
Queeny2-Jun-08 3:02 
AnswerRe: Using Braces in C++ Pin
Maximilien2-Jun-08 3:08
Maximilien2-Jun-08 3:08 
AnswerRe: Using Braces in C++ Pin
David Crow2-Jun-08 3:23
David Crow2-Jun-08 3:23 
AnswerRe: Using Braces in C++ Pin
James R. Twine2-Jun-08 3:33
James R. Twine2-Jun-08 3:33 
AnswerRe: Using Braces in C++ PinPopular
Jijo.Raj2-Jun-08 4:37
Jijo.Raj2-Jun-08 4:37 
I just want to add one more point. Its always recommenced, in "Maintenance" point of view. I'm taking "if" as an e.g.. If the "if" block is a single line, braces are not necessary.

But in future if someone(especially beginners) needs to add another line to the "if" body, chances are lot to forget to put the braces which will end up in trouble. For instance,

if( bFailed )
   statement1;
   Bugfix Statement1; // Will get executed always.


It won't occur often. But still a good practice. Roll eyes | :rolleyes:

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

GeneralRe: Using Braces in C++ Pin
bob169722-Jun-08 17:56
bob169722-Jun-08 17:56 
AnswerRe: Using Braces in C++ Pin
Hamid_RT3-Jun-08 1:21
Hamid_RT3-Jun-08 1:21 
Questiondll not been made Pin
prithaa2-Jun-08 2:55
prithaa2-Jun-08 2:55 
AnswerRe: dll not been made Pin
Alan Balkany2-Jun-08 3:45
Alan Balkany2-Jun-08 3:45 
GeneralRe: dll not been made Pin
prithaa2-Jun-08 3:50
prithaa2-Jun-08 3:50 
GeneralRe: dll not been made Pin
Alan Balkany2-Jun-08 3:57
Alan Balkany2-Jun-08 3:57 
AnswerRe: dll not been made Pin
Hamid_RT3-Jun-08 1:23
Hamid_RT3-Jun-08 1:23 
QuestionCommunications between dialogs Pin
Trupti Mehta2-Jun-08 2:44
Trupti Mehta2-Jun-08 2:44 
AnswerRe: Communications between dialogs Pin
KarstenK2-Jun-08 2:54
mveKarstenK2-Jun-08 2:54 
GeneralRe: Communications between dialogs Pin
Trupti Mehta2-Jun-08 3:10
Trupti Mehta2-Jun-08 3:10 
AnswerRe: Communications between dialogs Pin
David Crow2-Jun-08 3:26
David Crow2-Jun-08 3:26 
AnswerRe: Communications between dialogs Pin
Jijo.Raj2-Jun-08 19:49
Jijo.Raj2-Jun-08 19:49 
GeneralRe: Communications between dialogs Pin
Trupti Mehta2-Jun-08 22:11
Trupti Mehta2-Jun-08 22:11 
GeneralRe: Communications between dialogs Pin
Jijo.Raj3-Jun-08 8:10
Jijo.Raj3-Jun-08 8:10 
GeneralRe: Communications between dialogs Pin
Trupti Mehta3-Jun-08 21:26
Trupti Mehta3-Jun-08 21:26 
GeneralRe: Communications between dialogs Pin
Jijo.Raj4-Jun-08 3:27
Jijo.Raj4-Jun-08 3:27 
QuestionConverting GUID to Hex Pin
Shivarudrayya H2-Jun-08 2:42
Shivarudrayya H2-Jun-08 2:42 

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.