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

C / C++ / MFC

 
GeneralRe: CEGUI related issues Pin
pointSX201028-Apr-10 15:41
pointSX201028-Apr-10 15:41 
AnswerRe: CEGUI related issues Pin
Eugen Podsypalnikov28-Apr-10 1:33
Eugen Podsypalnikov28-Apr-10 1:33 
GeneralRe: CEGUI related issues Pin
pointSX201028-Apr-10 15:48
pointSX201028-Apr-10 15:48 
QuestionHow does this template work Pin
AkashAg27-Apr-10 20:39
AkashAg27-Apr-10 20:39 
AnswerRe: How does this template work PinPopular
Cedric Moonen27-Apr-10 20:48
Cedric Moonen27-Apr-10 20:48 
AnswerRe: How does this template work Pin
CPallini27-Apr-10 20:48
mveCPallini27-Apr-10 20:48 
GeneralRe: How does this template work Pin
AkashAg27-Apr-10 21:13
AkashAg27-Apr-10 21:13 
GeneralRe: How does this template work [modified] Pin
CPallini27-Apr-10 21:18
mveCPallini27-Apr-10 21:18 
akashag wrote:
Does it mean that U can access methods from NULL pointer but not attribute?

Yes, try:
#include <iostream>
using namespace std;

class A
{
public:
  int a;
  A():a(1){}
  void show(){ cout << "The show must go on." << endl; }
  void dump(){ cout << "member value is << " << a << endl;}
};

int main()
{
  A * pA = NULL;
  pA->show();
  pA->dump();
}


[added]
From a OOP point of view (IMHO) this is a point where object abstraction clashes with technical implementation.
[/added]

Smile | :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]
modified on Wednesday, April 28, 2010 3:36 AM

GeneralRe: How does this template work Pin
Cedric Moonen27-Apr-10 21:28
Cedric Moonen27-Apr-10 21:28 
GeneralRe: How does this template work PinPopular
Emilio Garavaglia28-Apr-10 1:47
Emilio Garavaglia28-Apr-10 1:47 
GeneralRe: How does this template work Pin
Cedric Moonen28-Apr-10 1:52
Cedric Moonen28-Apr-10 1:52 
GeneralRe: How does this template work Pin
Richard MacCutchan28-Apr-10 3:40
mveRichard MacCutchan28-Apr-10 3:40 
GeneralRe: How does this template work Pin
Cedric Moonen28-Apr-10 3:58
Cedric Moonen28-Apr-10 3:58 
GeneralRe: How does this template work Pin
Richard MacCutchan28-Apr-10 5:41
mveRichard MacCutchan28-Apr-10 5:41 
AnswerRe: How does this template work Pin
hanq_3891013027-Apr-10 21:00
hanq_3891013027-Apr-10 21:00 
QuestionSetup and Deplyment Project : Running external exe Pin
TechAvtar27-Apr-10 19:55
TechAvtar27-Apr-10 19:55 
AnswerRe: Setup and Deplyment Project : Running external exe Pin
hanq_3891013027-Apr-10 21:12
hanq_3891013027-Apr-10 21:12 
GeneralRe: Setup and Deplyment Project : Running external exe Pin
TechAvtar27-Apr-10 22:58
TechAvtar27-Apr-10 22:58 
QuestionExcel Open Pin
rdop27-Apr-10 19:45
rdop27-Apr-10 19:45 
QuestionRe: Excel Open Pin
CPallini27-Apr-10 20:30
mveCPallini27-Apr-10 20:30 
AnswerRe: Excel Open Pin
rdop27-Apr-10 20:50
rdop27-Apr-10 20:50 
GeneralRe: Excel Open Pin
CPallini27-Apr-10 21:14
mveCPallini27-Apr-10 21:14 
GeneralRe: Excel Open Pin
rdop27-Apr-10 21:54
rdop27-Apr-10 21:54 
AnswerRe: Excel Open Pin
Game-point28-Apr-10 17:01
Game-point28-Apr-10 17:01 
GeneralRe: Excel Open Pin
rdop29-Apr-10 18:51
rdop29-Apr-10 18:51 

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.