Click here to Skip to main content
15,898,988 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Inheritance? Pin
Bob Stanneveld23-May-05 20:14
Bob Stanneveld23-May-05 20:14 
GeneralRadio Button Pin
alvarillo23-May-05 2:31
alvarillo23-May-05 2:31 
GeneralRe: Radio Button Pin
David Crow23-May-05 4:39
David Crow23-May-05 4:39 
GeneralRemoving Items From A Listbox Pin
[d3m0n]23-May-05 2:26
[d3m0n]23-May-05 2:26 
GeneralRe: Removing Items From A Listbox Pin
Tom Archer23-May-05 2:31
Tom Archer23-May-05 2:31 
GeneralRe: Removing Items From A Listbox Pin
[d3m0n]23-May-05 2:54
[d3m0n]23-May-05 2:54 
GeneralRe: Removing Items From A Listbox Pin
Tom Archer23-May-05 2:58
Tom Archer23-May-05 2:58 
GeneralRe: Removing Items From A Listbox Pin
ThatsAlok23-May-05 3:03
ThatsAlok23-May-05 3:03 
GeneralRe: Removing Items From A Listbox Pin
[d3m0n]23-May-05 3:08
[d3m0n]23-May-05 3:08 
GeneralRe: Removing Items From A Listbox Pin
lynchspawn23-May-05 4:11
lynchspawn23-May-05 4:11 
GeneralRe: Removing Items From A Listbox Pin
Jack Puppy23-May-05 4:06
Jack Puppy23-May-05 4:06 
GeneralRe: Removing Items From A Listbox Pin
[d3m0n]23-May-05 4:23
[d3m0n]23-May-05 4:23 

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.