no appropriate default constructor available . (when creating a child class)

Posted by numerical25 on Stack Overflow See other posts from Stack Overflow or by numerical25
Published on 2010-06-18T14:17:21Z Indexed on 2010/06/18 14:23 UTC
Read the original article Hit count: 297

Filed under:
|
|

I am creating some custom exception classes doing the following

class GXException
{
public:
    GXException(LPCWSTR pTxt):pReason(pTxt){};
    LPCWSTR pReason;
};

class GXVideoException : GXException
{
public:
    GXVideoException(LPCWSTR pTxt):pReason(pTxt){};
    LPCWSTR pReason;
};

When I created GXVideoException to extend GXException, I get the following error

1>c:\users\numerical25\desktop\intro todirectx\godfiles\gxrendermanager\gxrendermanager\gxrendermanager\gxexceptions.h(14) : error C2512: 'GXException' : no appropriate default constructor available

© Stack Overflow or respective owner

Related posts about c++

Related posts about visual-studio