Click here to Skip to main content
15,915,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How many ways to get machine name of localhost? Pin
User 2155971-Nov-03 3:15
User 2155971-Nov-03 3:15 
GeneralRe: How many ways to get machine name of localhost? Pin
George21-Nov-03 18:01
George21-Nov-03 18:01 
Questioncrystal report problem? Pin
murali_utr31-Oct-03 20:36
murali_utr31-Oct-03 20:36 
GeneralDisplay properties, DPI Pin
Vancouver31-Oct-03 20:32
Vancouver31-Oct-03 20:32 
QuestionCan Anyone Explain this !! :) Pin
Abhishek Srivastava31-Oct-03 18:43
Abhishek Srivastava31-Oct-03 18:43 
AnswerRe: Can Anyone Explain this !! :) Pin
Michael Dunn31-Oct-03 19:46
sitebuilderMichael Dunn31-Oct-03 19:46 
GeneralRe: Can Anyone Explain this !! :) Pin
Antti Keskinen1-Nov-03 11:10
Antti Keskinen1-Nov-03 11:10 
GeneralRe: Can Anyone Explain this !! :) Pin
Roger Allen1-Nov-03 12:58
Roger Allen1-Nov-03 12:58 
What Mike says is right. The member function is not called through the pointer unless its virtual (in which case it de-references the pointer to lookup the vtable pointer). As it knows that your pointer is of type X, it can call any non virtual function on it directly, its just that in C++ the first hidden parameters passed is the this pointer.

Dereferencing the pointer in any way would cause the access violation. As the example given only had code accessing variables declared on the stack, there would not be any problems.


Roger Allen
Sonork 100.10016

Death come early, death come late,
It takes us all, there is no reason.
For every purpose under heaven,
To each a turn, to each a season.
A time to weep and a time to sigh,
A time to laugh and a time to cry,
A time to be born and a time to die.
Dust to dust and ashes to ashes,
And so I end my song.

GeneralCImageList Color problem Pin
Shah Shehpori31-Oct-03 18:23
sussShah Shehpori31-Oct-03 18:23 
GeneralRe: CImageList Color problem Pin
atif_ilm@yahoo.com31-Oct-03 18:55
sussatif_ilm@yahoo.com31-Oct-03 18:55 
GeneralTranslate ascii character Pin
percyvimal31-Oct-03 17:57
percyvimal31-Oct-03 17:57 
GeneralTranslate the ascii character into extended ascii character Pin
percyvimal31-Oct-03 17:54
percyvimal31-Oct-03 17:54 
Generalconvert CTime data (c++) to Date data (VB). Pin
rajdawg31-Oct-03 15:39
rajdawg31-Oct-03 15:39 
GeneralRe: convert CTime data (c++) to Date data (VB). Pin
Anthony_Yio31-Oct-03 18:37
Anthony_Yio31-Oct-03 18:37 
GeneralRe: convert CTime data (c++) to Date data (VB). Pin
rajdawg1-Nov-03 9:38
rajdawg1-Nov-03 9:38 
QuestionHow can I query disk space Pin
devvvy31-Oct-03 15:19
devvvy31-Oct-03 15:19 
AnswerRe: How can I query disk space Pin
Ravi Bhavnani31-Oct-03 15:30
professionalRavi Bhavnani31-Oct-03 15:30 
AnswerRe: How can I query disk space Pin
Garth J Lancaster31-Oct-03 16:27
professionalGarth J Lancaster31-Oct-03 16:27 
QuestionHow can you check if dot-NET framework is installed on a computer? Pin
devvvy31-Oct-03 15:15
devvvy31-Oct-03 15:15 
Generalhelp with photoshop 7.0 Pin
Snyp31-Oct-03 14:43
Snyp31-Oct-03 14:43 
GeneralRe: help with photoshop 7.0 Pin
ZoogieZork1-Nov-03 11:38
ZoogieZork1-Nov-03 11:38 
GeneralCFontDialog: Hiding underline and strikeout Pin
Joe Woodbury31-Oct-03 11:55
professionalJoe Woodbury31-Oct-03 11:55 
GeneralRe: CFontDialog: Hiding underline and strikeout Pin
PJ Arends31-Oct-03 13:05
professionalPJ Arends31-Oct-03 13:05 
GeneralRe: CFontDialog: Hiding underline and strikeout Pin
Joe Woodbury31-Oct-03 13:20
professionalJoe Woodbury31-Oct-03 13:20 
GeneralRe: CFontDialog: Hiding underline and strikeout Pin
PJ Arends31-Oct-03 13:28
professionalPJ Arends31-Oct-03 13:28 

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.