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

C / C++ / MFC

 
GeneralRe: StretchBlt - logical units ? Pin
Graham Shanks2-Jun-08 4:37
Graham Shanks2-Jun-08 4:37 
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 
Queeny wrote:
Is there a reason for using braces if they are not part of a condition or loop? For example:


   Yes - for finer control of the construction and destruction of objects.  For example:
//
// Some Code Getting Ready To Process Something...
//
{
    CMyHeavyweight myobjObject;
 
    myobjObject.DoYerThang( true );
}
//
// Some Code After Processing Something...
//
   Even if the object is not too heavyweight, you may have a reason to want/need to limit the time it exists because it manages some shared resource(s).  Yes, this is usually a sign of bad design, but you may be using a pre-existing library that you have no control over.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<hr></hr>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles



AnswerRe: Using Braces in C++ PinPopular
Jijo.Raj2-Jun-08 4:37
Jijo.Raj2-Jun-08 4:37 
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 

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.