Click here to Skip to main content
15,885,871 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCString to double [modified] Pin
john563212-Nov-10 21:10
john563212-Nov-10 21:10 
AnswerRe: CString to double Pin
Stephen Hewitt13-Nov-10 2:30
Stephen Hewitt13-Nov-10 2:30 
QuestionTerminating OpenMP loop early Pin
Damir Valiulin12-Nov-10 12:51
Damir Valiulin12-Nov-10 12:51 
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 
Hey folks, i was just wondering, what do you think which of these would generate a faster way -if there's a difference at all- to query a class variable:
//--- Method A ----
class CMyClass
{
protected:
  int m_myVar;

public:
  int GetVar() const { return m_myVar; }
};

//---- Method B ----
  ...
  const int &GetVar() const { return m_myVar; }
  ...

//--- Method C ----
  ,,,
  inline int GetVar() const { return m_myVar; }
  ...

//---- Method D ----
  ...
  inline const int &GetVar() const { return m_myVar; }
  ...

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <

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 
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 

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.