Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLine Number macros to use in output of Message Box? Pin
ldsdbomber3-Feb-09 5:44
ldsdbomber3-Feb-09 5:44 
AnswerRe: Line Number macros to use in output of Message Box? Pin
Stuart Dootson3-Feb-09 6:01
professionalStuart Dootson3-Feb-09 6:01 
QuestionSerial Interface Baud Rate higher than 115200 Pin
stebefbe3-Feb-09 5:31
stebefbe3-Feb-09 5:31 
AnswerRe: Serial Interface Baud Rate higher than 115200 Pin
Roger Stoltz3-Feb-09 5:51
Roger Stoltz3-Feb-09 5:51 
QuestionHelp on CString Pin
parth.p3-Feb-09 5:08
parth.p3-Feb-09 5:08 
AnswerRe: Help on CString Pin
krmed3-Feb-09 6:13
krmed3-Feb-09 6:13 
GeneralRe: Help on CString Pin
parth.p3-Feb-09 6:26
parth.p3-Feb-09 6:26 
GeneralRe: Help on CString Pin
Cedric Moonen3-Feb-09 7:25
Cedric Moonen3-Feb-09 7:25 
p.a.r.t.h wrote:
but I am using parameter by value and not reference.


Yes, but you pass the pointer by reference. It means that the function will make a copy of the pointer, but the copy will still point at the same memory location. If you think of a pointer being a simple integer variable (for sake of simplicity) containing a number (which is an address), when you pass that variable to your function, you will get a copy but which still contains the same number (the same address). Thus, if you modify the content of the pointer (changing what is at the specified address), the changes will be visible in your main because the pointer points at the same address.

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

GeneralRe: Help on CString Pin
parth.p3-Feb-09 7:28
parth.p3-Feb-09 7:28 
GeneralRe: Help on CString Pin
CPallini3-Feb-09 9:38
mveCPallini3-Feb-09 9:38 
QuestionAvoid use of page file Pin
RomTibi3-Feb-09 4:52
RomTibi3-Feb-09 4:52 
AnswerRe: Avoid use of page file Pin
Stuart Dootson3-Feb-09 5:58
professionalStuart Dootson3-Feb-09 5:58 
GeneralRe: Avoid use of page file Pin
RomTibi3-Feb-09 8:51
RomTibi3-Feb-09 8:51 
QuestionCan't reference COM type library in x64 visual studio? Pin
Will58013-Feb-09 4:14
Will58013-Feb-09 4:14 
AnswerRe: Can't reference COM type library in x64 visual studio? Pin
«_Superman_»3-Feb-09 18:42
professional«_Superman_»3-Feb-09 18:42 
GeneralRe: Can't reference COM type library in x64 visual studio? Pin
Will58015-Feb-09 1:10
Will58015-Feb-09 1:10 
Questionhelp needed for encoding / saving "*.raw" images. Pin
cool guy Tmk3-Feb-09 3:37
cool guy Tmk3-Feb-09 3:37 
AnswerRe: help needed for encoding / saving "*.raw" images. Pin
Stuart Dootson3-Feb-09 5:52
professionalStuart Dootson3-Feb-09 5:52 
AnswerRe: help needed for encoding / saving "*.raw" images. Pin
Saurabh.Garg3-Feb-09 16:34
Saurabh.Garg3-Feb-09 16:34 
AnswerRe: help needed for encoding / saving "*.raw" images. Pin
Hamid_RT3-Feb-09 20:59
Hamid_RT3-Feb-09 20:59 
QuestionEuler's Contant To The X Power Pin
little_missy3-Feb-09 2:11
little_missy3-Feb-09 2:11 
AnswerRe: Euler's Contant To The X Power Pin
toxcct3-Feb-09 2:34
toxcct3-Feb-09 2:34 
GeneralRe: Euler's Contant To The X Power Pin
little_missy3-Feb-09 23:53
little_missy3-Feb-09 23:53 
GeneralRe: Euler's Contant To The X Power Pin
toxcct4-Feb-09 0:02
toxcct4-Feb-09 0:02 
AnswerRe: Euler's Contant To The X Power Pin
cmk3-Feb-09 6:09
cmk3-Feb-09 6:09 

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.