Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_TIMER Pin
Waldermort31-Aug-07 9:33
Waldermort31-Aug-07 9:33 
GeneralRe: WM_TIMER Pin
Mark Salsbery31-Aug-07 9:42
Mark Salsbery31-Aug-07 9:42 
AnswerRe: WM_TIMER Pin
Waldermort31-Aug-07 9:34
Waldermort31-Aug-07 9:34 
GeneralRe: WM_TIMER Pin
__yash__31-Aug-07 9:40
professional__yash__31-Aug-07 9:40 
QuestionSetWindowPos & GetWindowRect Pin
Mr Simple31-Aug-07 7:05
Mr Simple31-Aug-07 7:05 
AnswerRe: SetWindowPos & GetWindowRect Pin
Mark Salsbery31-Aug-07 7:13
Mark Salsbery31-Aug-07 7:13 
AnswerRe: SetWindowPos & GetWindowRect Pin
Roger Broomfield31-Aug-07 17:32
Roger Broomfield31-Aug-07 17:32 
QuestionCan someone with VC++ 2008 "Orcas" test this? Pin
dontknowitall31-Aug-07 6:55
dontknowitall31-Aug-07 6:55 
I need someone with Orcas to test the following code. It compiles just fine under Comeau C++ 4.3.9 in strict mode (Comeau is supposedly the "most Standards-compliant compiler in existence") but fails with an error under VS.NET 2003 (VC++). According to the ANSI Standard (section 10.3.5 in my Draft copy), I can't find any reason for it to fail.

// This code fails on VS.NET 2003 (VC++) with a error.
//
// error C2511: 'MyBase2 *MyDerived::Copy(void)' :
// overloaded member function not found in 'MyDerived'
//
// Removing the 'const' qualifiers fixes the problem.

class MyBase
{
public:
   MyBase()  {}
   virtual ~MyBase()  {}

   virtual MyBase *Copy() const
   {
     return new MyBase(*this);
   }
};

class MyBase2
{
public:
   MyBase2()  {}
   virtual ~MyBase2()  {}

   virtual MyBase2 *Copy() const
   {
     return new MyBase2(*this);
   }
};

class MyDerived : public MyBase, public MyBase2
{
public:
   MyDerived()  {}
   virtual ~MyDerived()  {}

   virtual MyDerived *Copy() const
   {
     return new MyDerived(*this);
   }
};

int main()
{
  return 0;
}

AnswerRe: Can someone with VC++ 2008 "Orcas" test this? Pin
Jonathan [Darka]31-Aug-07 7:03
professionalJonathan [Darka]31-Aug-07 7:03 
GeneralRe: Can someone with VC++ 2008 "Orcas" test this? Pin
dontknowitall31-Aug-07 7:12
dontknowitall31-Aug-07 7:12 
AnswerRe: Can someone with VC++ 2008 "Orcas" test this? Pin
Mark Salsbery31-Aug-07 7:25
Mark Salsbery31-Aug-07 7:25 
GeneralRe: Can someone with VC++ 2008 "Orcas" test this? Pin
dontknowitall31-Aug-07 8:42
dontknowitall31-Aug-07 8:42 
Questionget checked value from menu Pin
barbarini31-Aug-07 6:40
barbarini31-Aug-07 6:40 
AnswerRe: get checked value from menu Pin
Jonathan [Darka]31-Aug-07 7:09
professionalJonathan [Darka]31-Aug-07 7:09 
GeneralRe: get checked value from menu Pin
barbarini31-Aug-07 7:26
barbarini31-Aug-07 7:26 
GeneralRe: get checked value from menu Pin
barbarini31-Aug-07 8:03
barbarini31-Aug-07 8:03 
GeneralRe: get checked value from menu Pin
Hamid_RT31-Aug-07 19:12
Hamid_RT31-Aug-07 19:12 
GeneralRe: get checked value from menu Pin
Anurag Gandhi31-Aug-07 20:19
professionalAnurag Gandhi31-Aug-07 20:19 
Questioninterface programming Pin
Adno31-Aug-07 6:18
Adno31-Aug-07 6:18 
AnswerRe: interface programming Pin
led mike31-Aug-07 6:51
led mike31-Aug-07 6:51 
GeneralRe: interface programming Pin
Adno31-Aug-07 7:09
Adno31-Aug-07 7:09 
Questionhow to implement hotfix function? Pin
lostangels31-Aug-07 5:46
lostangels31-Aug-07 5:46 
AnswerRe: how to implement hotfix function? Pin
Roger Broomfield31-Aug-07 5:55
Roger Broomfield31-Aug-07 5:55 
QuestionRe: how to implement hotfix function? Pin
Hamid_RT31-Aug-07 19:09
Hamid_RT31-Aug-07 19:09 
AnswerRe: how to implement hotfix function? Pin
lostangels31-Aug-07 23:07
lostangels31-Aug-07 23:07 

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.