Click here to Skip to main content
15,887,446 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: simple dialog problem Pin
David Crow13-Dec-07 5:06
David Crow13-Dec-07 5:06 
Generaltemplate function issue Pin
George_George11-Dec-07 22:39
George_George11-Dec-07 22:39 
GeneralRe: template function issue Pin
Matthew Faithfull11-Dec-07 23:03
Matthew Faithfull11-Dec-07 23:03 
GeneralRe: template function issue Pin
George_George12-Dec-07 0:15
George_George12-Dec-07 0:15 
GeneralRe: template function issue Pin
Matthew Faithfull12-Dec-07 2:51
Matthew Faithfull12-Dec-07 2:51 
GeneralRe: template function issue Pin
George_George12-Dec-07 3:22
George_George12-Dec-07 3:22 
Questionwhat it mean ? Pin
john563211-Dec-07 22:32
john563211-Dec-07 22:32 
AnswerRe: what it mean ? Pin
Cedric Moonen11-Dec-07 22:38
Cedric Moonen11-Dec-07 22:38 
inline means that the function is inlined (the compiler will replace a call to the function by the code of the function itself). Search for inline on google

The & means that the function returns a reference to the object instead of a copy of the object. By default, in C++ when you pass arguments to a function, you will in fact have a copy of the object, not the original object. The same with the return of the function: you will get a copy of the object. By using the reference, it means that you will get the original object, not a copy (so, if you modify it outside the class, it will be modified in the class also).

But I think your code is wrong: you forgot the class name (or is does it come from a header file ? If yes, the inline is not needed).



Cédric Moonen
Software developer

Charting control [v1.2]

AnswerRe: what it mean ? Pin
ThatsAlok13-Dec-07 0:18
ThatsAlok13-Dec-07 0:18 
Generalcannot convert from 'char *' to 'unsigned short *' Pin
santhoshv8411-Dec-07 21:50
santhoshv8411-Dec-07 21:50 
GeneralRe: cannot convert from 'char *' to 'unsigned short *' Pin
Cedric Moonen11-Dec-07 21:55
Cedric Moonen11-Dec-07 21:55 
GeneralRe: cannot convert from 'char *' to 'unsigned short *' Pin
CPallini11-Dec-07 22:01
mveCPallini11-Dec-07 22:01 
GeneralProblem in Opening HTML file. Pin
sanjeeva K Kanakam11-Dec-07 21:23
sanjeeva K Kanakam11-Dec-07 21:23 
GeneralRe: Problem in Opening HTML file. Pin
Iain Clarke, Warrior Programmer12-Dec-07 1:52
Iain Clarke, Warrior Programmer12-Dec-07 1:52 
Generalatof() losing precision Pin
Andy H11-Dec-07 20:33
Andy H11-Dec-07 20:33 
GeneralRe: atof() losing precision Pin
Cedric Moonen11-Dec-07 21:02
Cedric Moonen11-Dec-07 21:02 
GeneralRe: atof() losing precision Pin
Llasus11-Dec-07 21:07
Llasus11-Dec-07 21:07 
GeneralRe: atof() losing precision Pin
Cedric Moonen11-Dec-07 21:13
Cedric Moonen11-Dec-07 21:13 
GeneralFiles related Pin
rajanponnalagu11-Dec-07 19:35
rajanponnalagu11-Dec-07 19:35 
GeneralRe: Files related Pin
Llasus11-Dec-07 20:45
Llasus11-Dec-07 20:45 
GeneralRe: Files related Pin
rajanponnalagu11-Dec-07 21:21
rajanponnalagu11-Dec-07 21:21 
GeneralRe: Files related Pin
Sunil Shindekar11-Dec-07 23:38
Sunil Shindekar11-Dec-07 23:38 
GeneralRe: Files related Pin
rajanponnalagu12-Dec-07 1:08
rajanponnalagu12-Dec-07 1:08 
GeneralRe: Files related Pin
Iain Clarke, Warrior Programmer12-Dec-07 1:57
Iain Clarke, Warrior Programmer12-Dec-07 1:57 
GeneralRe: Files related Pin
Sunil Shindekar12-Dec-07 19:59
Sunil Shindekar12-Dec-07 19:59 

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.