Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why I can't use one more CBUTTON variable Pin
toxcct23-May-05 3:18
toxcct23-May-05 3:18 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 3:28
yeetins23-May-05 3:28 
GeneralRe: Why I can't use one more CBUTTON variable Pin
toxcct23-May-05 3:37
toxcct23-May-05 3:37 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 3:49
yeetins23-May-05 3:49 
GeneralRe: Why I can't use one more CBUTTON variable Pin
Cedric Moonen23-May-05 3:35
Cedric Moonen23-May-05 3:35 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 3:47
yeetins23-May-05 3:47 
GeneralRe: Why I can't use one more CBUTTON variable Pin
toxcct23-May-05 3:50
toxcct23-May-05 3:50 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 3:59
yeetins23-May-05 3:59 
GeneralRe: Why I can't use one more CBUTTON variable Pin
toxcct23-May-05 4:08
toxcct23-May-05 4:08 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 4:17
yeetins23-May-05 4:17 
GeneralRe: Why I can't use one more CBUTTON variable Pin
toxcct23-May-05 4:20
toxcct23-May-05 4:20 
GeneralRe: Why I can't use one more CBUTTON variable Pin
Cedric Moonen23-May-05 3:53
Cedric Moonen23-May-05 3:53 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 4:07
yeetins23-May-05 4:07 
GeneralRe: Why I can't use one more CBUTTON variable Pin
Cedric Moonen23-May-05 4:18
Cedric Moonen23-May-05 4:18 
GeneralRe: Why I can't use one more CBUTTON variable Pin
toxcct23-May-05 4:19
toxcct23-May-05 4:19 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 4:28
yeetins23-May-05 4:28 
GeneralRe: Why I can't use one more CBUTTON variable Pin
David Crow23-May-05 4:26
David Crow23-May-05 4:26 
GeneralRe: Why I can't use one more CBUTTON variable Pin
yeetins23-May-05 4:44
yeetins23-May-05 4:44 
GeneralRe: Why I can't use one more CBUTTON variable Pin
BlackDice23-May-05 5:10
BlackDice23-May-05 5:10 
QuestionInheritance? Pin
Bob Stanneveld23-May-05 2:43
Bob Stanneveld23-May-05 2:43 
Hello,

I have a strange problem with one of my classes. I have the following two classes:
<br />
template <class T0, class T1 ><br />
class SomeClass<br />
{<br />
public:<br />
typedef T0 Type0;<br />
<br />
SomeClass() {}<br />
virtual ~SomeClass() {}<br />
<br />
virtual bool DoFoo(Type0 Param1) = 0;<br />
virtual int DoFoo(Type0 Param1, int nParam2) { }<br />
<br />
// more functions<br />
};<br />
<br />
class OtherClass : public SomeClass<A, B><br />
{<br />
public:<br />
virtual bool DoFoo(Type0 nParam1) { }<br />
};<br />

And somewhere I have this code:
<br />
void SomeFunction()<br />
{<br />
OtherClass otherClass;<br />
<br />
// call some functions of SomeClass<br />
otherClass.DoFoo(1); // works fine<br />
otherClass.DoFoo(1, 1); // should call SomeClass::DoFoo(int, int), but issues C2660?<br />
}<br />


My problem is that in SomeFunction the compiler issues C2660 for a completly valid function call. The compiler says that it doesn't know DoFoo(int, int). I have no idea why this error is issued...

[EDIT]
I'm using VS 2005 if it is of any help.
[\EDIT]

Blog[^]
AnswerRe: Inheritance? Pin
GDavy23-May-05 3:19
GDavy23-May-05 3:19 
GeneralRe: Inheritance? Pin
Bob Stanneveld23-May-05 3:50
Bob Stanneveld23-May-05 3:50 
AnswerRe: Inheritance? Pin
Ryan Binns23-May-05 3:58
Ryan Binns23-May-05 3:58 
GeneralRe: Inheritance? Pin
Bob Stanneveld23-May-05 6:04
Bob Stanneveld23-May-05 6:04 
AnswerRe: Inheritance? Pin
S. Senthil Kumar23-May-05 5:25
S. Senthil Kumar23-May-05 5:25 

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.