[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-users] virtual method call
From: |
taurus |
Subject: |
[paragui-users] virtual method call |
Date: |
Mon, 22 Jul 2002 18:29:16 +0100 |
Hello People,
I`ve got a little problem, maybe someone knows how to solve it.
I`ve created a new class CDialog from PG_Window.
In CDialog I`ve added a virtual method Valid() to check if I can
close dialog window.
/*/*/*/*/*/*/
class CDialog : public PG_Window
{
public:
...
virtual bool Valid() {return true;};
...
}
/*/*/*/*/*/*/
Then I create a new class CProgressDialog from CDialog:
/*/*/*/*/*/*/
class CProgressDialog : public CDialog
{
public:
...
bool Valid() {return !IsSomthingEmpty()};
...
}
/*/*/*/*/*/*/
But, at runtime, it will be called CDialog::Valid() from
CProgressDialog... :(
Why does it call CDialog::Valid() instead of
CProgressDialog::Valid ?!!
Thank you!
Kind regards,
taurus
address@hidden
->> "If you will have a megaphone, you will never have to be alone..."
- [paragui-users] crash, keanu, 2002/07/20
- Re: [paragui-users] crash, Andrew Ford, 2002/07/20
- Re: [paragui-users] crash, keanu, 2002/07/20
- Re: [paragui-users] crash, Andrew Ford, 2002/07/20
- [paragui-users] paragui under wine, Lonnie Cumberland, 2002/07/20
- Re: [paragui-users] paragui under wine, Andrew Ford, 2002/07/21
- [paragui-users] virtual method call,
taurus <=
- Re: [paragui-users] virtual method call, Andrew Ford, 2002/07/22
- Re[2]: [paragui-users] virtual method call, taurus, 2002/07/23
- Re: [paragui-users] crash, Alexander Pipelka, 2002/07/20
- Re: [paragui-users] crash, Andrew Ford, 2002/07/21