Click here to Skip to main content
15,890,741 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionerror from using CString.GetBuffer (MAX_PATH), Pin
mrby1237-Jun-13 11:56
mrby1237-Jun-13 11:56 
AnswerRe: error from using CString.GetBuffer (MAX_PATH), Pin
jeron17-Jun-13 12:16
jeron17-Jun-13 12:16 
AnswerRe: error from using CString.GetBuffer (MAX_PATH), Pin
Richard MacCutchan7-Jun-13 22:21
mveRichard MacCutchan7-Jun-13 22:21 
QuestionRe: error from using CString.GetBuffer (MAX_PATH), Pin
David Crow8-Jun-13 3:19
David Crow8-Jun-13 3:19 
AnswerRe: error from using CString.GetBuffer (MAX_PATH), Pin
«_Superman_»9-Jun-13 5:04
professional«_Superman_»9-Jun-13 5:04 
QuestionAbstract Class Pin
AdvancedCPP7-Jun-13 3:24
AdvancedCPP7-Jun-13 3:24 
AnswerRe: Abstract Class Pin
Richard MacCutchan7-Jun-13 3:27
mveRichard MacCutchan7-Jun-13 3:27 
AnswerRe: Abstract Class Pin
David Crow7-Jun-13 4:12
David Crow7-Jun-13 4:12 
AdvancedCPP wrote:

What is the use of abstract class ?
class Shape
{
public:
    Shape( int nWidth, int nHeight )
    {
        m_nWidth  = nWidth;
        m_nHeight = nHeight;
    }

    virtual double getArea() = 0; // can't derive from directly

protected:
    int m_nWidth;
    int m_nHeight;
};

//====================================================================

class Circle : public Shape
{
public:
    Circle( int nWidth, int nHeight ) : Shape(nWidth, nHeight) {};

    double getArea() 
    {
        int nRadius = m_nWidth / 2;
        return 3.1415962 * nRadius * nRadius;
    }
};

//====================================================================

class Square : public Shape 
{
public:
    Square( int nWidth, int nHeight ) : Shape(nWidth, nHeight) {};

    double getArea() { return m_nWidth * m_nHeight; }
};

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous


AnswerRe: Abstract Class Pin
Jonathan Davies7-Jun-13 5:43
Jonathan Davies7-Jun-13 5:43 
AnswerRe: Abstract Class Pin
CPallini7-Jun-13 9:57
mveCPallini7-Jun-13 9:57 
QuestionMultithreading Pin
AdvancedCPP7-Jun-13 3:05
AdvancedCPP7-Jun-13 3:05 
AnswerRe: Multithreading Pin
Pablo Aliskevicius8-Jun-13 23:40
Pablo Aliskevicius8-Jun-13 23:40 
QuestionVS2008 Custom Rules: Can I run two rules on one input file? Pin
Jonathan Davies7-Jun-13 1:36
Jonathan Davies7-Jun-13 1:36 
SuggestionRe: VS2008 Custom Rules: Can I run two rules on one input file? Pin
Richard MacCutchan7-Jun-13 1:45
mveRichard MacCutchan7-Jun-13 1:45 
GeneralRe: VS2008 Custom Rules: Can I run two rules on one input file? Pin
Jonathan Davies7-Jun-13 5:30
Jonathan Davies7-Jun-13 5:30 
QuestionCommand Invoked by Shortcut not Crashing But by invoking Menu, it is crashing in MFC Pin
002comp7-Jun-13 0:32
002comp7-Jun-13 0:32 
AnswerRe: Command Invoked by Shortcut not Crashing But by invoking Menu, it is crashing in MFC Pin
SoMad7-Jun-13 1:08
professionalSoMad7-Jun-13 1:08 
SuggestionRe: Command Invoked by Shortcut not Crashing But by invoking Menu, it is crashing in MFC Pin
Richard MacCutchan7-Jun-13 1:08
mveRichard MacCutchan7-Jun-13 1:08 
GeneralRe: Command Invoked by Shortcut not Crashing But by invoking Menu, it is crashing in MFC Pin
002comp7-Jun-13 1:18
002comp7-Jun-13 1:18 
GeneralRe: Command Invoked by Shortcut not Crashing But by invoking Menu, it is crashing in MFC Pin
SoMad7-Jun-13 1:28
professionalSoMad7-Jun-13 1:28 
GeneralRe: Command Invoked by Shortcut not Crashing But by invoking Menu, it is crashing in MFC Pin
Richard MacCutchan7-Jun-13 1:30
mveRichard MacCutchan7-Jun-13 1:30 
GeneralRe: Command Invoked by Shortcut not Crashing But by invoking Menu, it is crashing in MFC Pin
002comp7-Jun-13 1:43
002comp7-Jun-13 1:43 
GeneralRe: Command Invoked by Shortcut not Crashing But by invoking Menu, it is crashing in MFC Pin
Richard MacCutchan7-Jun-13 2:36
mveRichard MacCutchan7-Jun-13 2:36 
QuestionBit concatenation in C++ Pin
Manoj73906-Jun-13 22:51
Manoj73906-Jun-13 22:51 
AnswerRe: Bit concatenation in C++ Pin
Freak306-Jun-13 23:17
Freak306-Jun-13 23:17 

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.