Click here to Skip to main content
15,886,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Terminating OpenMP loop early Pin
Randor 13-Nov-10 1:11
professional Randor 13-Nov-10 1:11 
GeneralRe: Terminating OpenMP loop early Pin
Damir Valiulin15-Nov-10 7:12
Damir Valiulin15-Nov-10 7:12 
QuestionUsing Liberary Module in VS 2008?? Pin
AmbiguousName12-Nov-10 8:44
AmbiguousName12-Nov-10 8:44 
AnswerRe: Using Liberary Module in VS 2008?? Pin
Chris Losinger15-Nov-10 1:03
professionalChris Losinger15-Nov-10 1:03 
QuestionWhich is better? Returning reference or value? Pin
Code-o-mat12-Nov-10 8:18
Code-o-mat12-Nov-10 8:18 
AnswerRe: Which is better? Returning reference or value? Pin
Sauro Viti12-Nov-10 8:41
professionalSauro Viti12-Nov-10 8:41 
GeneralRe: Which is better? Returning reference or value? Pin
Code-o-mat12-Nov-10 10:07
Code-o-mat12-Nov-10 10:07 
AnswerRe: Which is better? Returning reference or value? Pin
Dr.Walt Fair, PE12-Nov-10 10:03
professionalDr.Walt Fair, PE12-Nov-10 10:03 
Actually in the long run, return by value may be shorter, but it depends on what you are measuring. For basic data types, the actual return doesn't make much difference, but then when you go to use the returned value, if it is returned by reference, there is an extra level of indirection to resolve.

Of course what the compiler optimizes out and what else you might do with the results enters into the overall performance, so it's not a simple matter to determine a priori. However, in most cases, I doubt the difference is major.
CQ de W5ALT

Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software


GeneralRe: Which is better? Returning reference or value? Pin
Code-o-mat12-Nov-10 10:10
Code-o-mat12-Nov-10 10:10 
QuestionHow to get serial number of motherboard using C++ on WINDOWS? Pin
Aseem Sharma12-Nov-10 6:17
Aseem Sharma12-Nov-10 6:17 
AnswerRe: How to get serial number of motherboard using C++ on WINDOWS? Pin
Code-o-mat12-Nov-10 6:48
Code-o-mat12-Nov-10 6:48 
GeneralRe: How to get serial number of motherboard using C++ on WINDOWS? Pin
Aseem Sharma12-Nov-10 18:42
Aseem Sharma12-Nov-10 18:42 
AnswerRe: How to get serial number of motherboard using C++ on WINDOWS? Pin
David Crow12-Nov-10 7:35
David Crow12-Nov-10 7:35 
AnswerRe: How to get serial number of motherboard using C++ on WINDOWS? Pin
Luc Pattyn12-Nov-10 8:00
sitebuilderLuc Pattyn12-Nov-10 8:00 
QuestionRe: How to get serial number of motherboard using C++ on WINDOWS? Pin
Code-o-mat12-Nov-10 10:10
Code-o-mat12-Nov-10 10:10 
AnswerRe: How to get serial number of motherboard using C++ on WINDOWS? Pin
Luc Pattyn12-Nov-10 10:32
sitebuilderLuc Pattyn12-Nov-10 10:32 
GeneralRe: How to get serial number of motherboard using C++ on WINDOWS? Pin
Code-o-mat12-Nov-10 10:44
Code-o-mat12-Nov-10 10:44 
AnswerRe: How to get serial number of motherboard using C++ on WINDOWS? Pin
Luc Pattyn12-Nov-10 10:52
sitebuilderLuc Pattyn12-Nov-10 10:52 
GeneralRe: How to get serial number of motherboard using C++ on WINDOWS? Pin
Code-o-mat12-Nov-10 10:58
Code-o-mat12-Nov-10 10:58 
Questionconvert binary file to image/bmp file in vc++ Pin
shiv@nand12-Nov-10 1:16
shiv@nand12-Nov-10 1:16 
AnswerRe: convert binary file to image/bmp file in vc++ Pin
Cedric Moonen12-Nov-10 1:25
Cedric Moonen12-Nov-10 1:25 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
shiv@nand12-Nov-10 1:26
shiv@nand12-Nov-10 1:26 
QuestionRe: convert binary file to image/bmp file in vc++ Pin
Cool_Dev12-Nov-10 1:39
Cool_Dev12-Nov-10 1:39 
AnswerRe: convert binary file to image/bmp file in vc++ Pin
shiv@nand12-Nov-10 2:30
shiv@nand12-Nov-10 2:30 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
Cedric Moonen12-Nov-10 1:44
Cedric Moonen12-Nov-10 1:44 

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.