Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Initial OnPaint Pin
Prakash Nadar15-Oct-05 6:24
Prakash Nadar15-Oct-05 6:24 
AnswerRe: Initial OnPaint Pin
S. Senthil Kumar15-Oct-05 1:02
S. Senthil Kumar15-Oct-05 1:02 
GeneralRe: Initial OnPaint Pin
Trollslayer15-Oct-05 1:16
mentorTrollslayer15-Oct-05 1:16 
AnswerRe: Initial OnPaint Pin
Tim Smith15-Oct-05 4:51
Tim Smith15-Oct-05 4:51 
GeneralRe: Initial OnPaint Pin
Trollslayer15-Oct-05 4:58
mentorTrollslayer15-Oct-05 4:58 
GeneralRe: Initial OnPaint Pin
Prakash Nadar15-Oct-05 6:22
Prakash Nadar15-Oct-05 6:22 
AnswerRe: Initial OnPaint Pin
John R. Shaw16-Oct-05 16:48
John R. Shaw16-Oct-05 16:48 
Questionabstract base class Pin
toxcct15-Oct-05 0:36
toxcct15-Oct-05 0:36 
hello everyone,

i have a simple inheritence question for anybody knows...

let's take an example. I have the following class definition :
class CVCalcParserException {
  protected:
    int         m_iExceptionNumber;
    std::string m_strExceptionMsg;
    int         m_iErrorPos;
 
  public:
    CVCalcParserException(int                iExceptionNumber,
                          const std::string& strExceptionMsg,
                          int                iErrorPos);
    virtual ~CVCalcParserException();
    int         GetExceptionNumber();
    std::string GetMessage();
    int         GetErrorPos();
};

In the current state of my class, people could be able to create an instance of it, but I'd like to forbbid this as CVCalcParserException.is supposed to provide some services to the derived classes.
How could i set this class abstract ? the getter functions are not to be overloaded so i cannot put them as pure virtual functions (using =0).

any idea ?



TOXCCT >>> GEII power
[toxcct][VisualCalc]
AnswerRe: abstract base class Pin
S. Senthil Kumar15-Oct-05 0:52
S. Senthil Kumar15-Oct-05 0:52 
GeneralRe: abstract base class Pin
toxcct15-Oct-05 1:23
toxcct15-Oct-05 1:23 
QuestionRe: abstract base class Pin
toxcct15-Oct-05 1:42
toxcct15-Oct-05 1:42 
AnswerRe: abstract base class Pin
S. Senthil Kumar15-Oct-05 1:47
S. Senthil Kumar15-Oct-05 1:47 
GeneralRe: abstract base class Pin
toxcct15-Oct-05 1:55
toxcct15-Oct-05 1:55 
AnswerRe: abstract base class Pin
karmendra_js15-Oct-05 0:56
karmendra_js15-Oct-05 0:56 
QuestionCan any one help me to understand IOCP Pin
Member 168985514-Oct-05 23:49
Member 168985514-Oct-05 23:49 
Questionplea for assistance with CByteArray Pin
brian scott14-Oct-05 23:03
brian scott14-Oct-05 23:03 
AnswerRe: plea for assistance with CByteArray Pin
khan++14-Oct-05 23:21
khan++14-Oct-05 23:21 
GeneralRe: plea for assistance with CByteArray Pin
S. Senthil Kumar15-Oct-05 0:54
S. Senthil Kumar15-Oct-05 0:54 
AnswerRe: plea for assistance with CByteArray Pin
S. Senthil Kumar15-Oct-05 1:00
S. Senthil Kumar15-Oct-05 1:00 
GeneralRe: plea for assistance with CByteArray - compiler errors Pin
brian scott15-Oct-05 1:43
brian scott15-Oct-05 1:43 
Questionhow to import 3D SMax file in VC++? Pin
Anonymous14-Oct-05 22:34
Anonymous14-Oct-05 22:34 
AnswerRe: how to import 3D SMax file in VC++? Pin
The NULL Developer14-Oct-05 22:49
professionalThe NULL Developer14-Oct-05 22:49 
GeneralRe: how to import 3D SMax file in VC++? Pin
Anonymous14-Oct-05 23:41
Anonymous14-Oct-05 23:41 
QuestionListBox Control problem with code Pin
Rahul U Kate14-Oct-05 22:05
Rahul U Kate14-Oct-05 22:05 
Question840723 - overriding an MFC function Pin
ilostmyid214-Oct-05 21:56
professionalilostmyid214-Oct-05 21:56 

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.