Click here to Skip to main content
15,886,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Where to initialize the dialog in CDialogBar? Pin
followait1-Dec-07 19:42
followait1-Dec-07 19:42 
Questionparameters vs members Pin
bob169721-Dec-07 14:06
bob169721-Dec-07 14:06 
AnswerRe: parameters vs members Pin
Mark Salsbery1-Dec-07 15:56
Mark Salsbery1-Dec-07 15:56 
GeneralRe: parameters vs members Pin
bob169721-Dec-07 17:14
bob169721-Dec-07 17:14 
QuestionHeader Wrapper Symbol Pin
steph51-Dec-07 11:21
steph51-Dec-07 11:21 
AnswerRe: Header Wrapper Symbol Pin
Bram van Kampen1-Dec-07 11:56
Bram van Kampen1-Dec-07 11:56 
AnswerRe: Header Wrapper Symbol Pin
bob169721-Dec-07 14:22
bob169721-Dec-07 14:22 
Questionreg: error C2440: 'specialization' : cannot convert from '' to ' (__cdecl *)(const char *)' [modified] Pin
naresh_t1-Dec-07 3:45
naresh_t1-Dec-07 3:45 
i have downloaded autumnframework which is IOC for C++

but when i compile the autumnframework workspace using VC++ 6.0 but
iam getting the following errors.......

class 'Autumn::IBeanWrapper'
error C2440: 'specialization' : cannot convert from '' to ' (__cdecl *)(const char *)'
None of the functions with this name in scope match the target type
error C2975: 'BasicType' : invalid template argument for 'createfun', constant expression expected
error C2440: 'specialization' : cannot convert from '' to 'void (__cdecl *)()'
None of the functions with this name in scope match the target type
...........
..
The code is
the errors are at
.....................................

const string charAT("char");
const string ucharAT("unsignedchar");

char atoch(const char* s){return s[0];}
short atosh(const char* s){return (short)atoi(s);}

void freech(char p){}
void freesh(short p){}

TypeManager::TypeManager()
{
//I think that unsigned is same to singed to deal with except long
// The following is for basic type.
this->TypeList.push_back( new BasicType(charAT) );
this->TypeList.push_back( new BasicType(ucharAT) );
this->TypeList.push_back( new BasicType(shortAT) );
this->TypeList.push_back( new BasicType(ushortAT) );
.
.
}

The template def is
..................
template<class t,="" t="" createfun(const="" char*),="" void="" freefun(t)="">class BasicType:public IAutumnType{
private:
string typeFormat;

public:
BasicType(const string& name): typeFormat(name){}
.
.
}

please any can figure out the error

thanks in advance
naresh





-- modified at 9:55 Saturday 1st December, 2007
GeneralRe: reg: error C2440: 'specialization' : cannot convert from '' to ' (__cdecl *)(const char *)' Pin
David Crow14-Mar-08 5:59
David Crow14-Mar-08 5:59 
Questionclasses and inline functions Pin
Lutosław1-Dec-07 2:39
Lutosław1-Dec-07 2:39 
GeneralRe: classes and inline functions Pin
David Crow14-Mar-08 6:03
David Crow14-Mar-08 6:03 
QuestionBitmap button Pin
Schehaider_Aymen1-Dec-07 2:34
Schehaider_Aymen1-Dec-07 2:34 
AnswerRe: Bitmap button Pin
Hamid_RT1-Dec-07 3:14
Hamid_RT1-Dec-07 3:14 
GeneralRe: Bitmap button Pin
Schehaider_Aymen1-Dec-07 3:18
Schehaider_Aymen1-Dec-07 3:18 
GeneralRe: Bitmap button Pin
Schehaider_Aymen1-Dec-07 3:23
Schehaider_Aymen1-Dec-07 3:23 
GeneralRe: Bitmap button Pin
Hamid_RT1-Dec-07 4:44
Hamid_RT1-Dec-07 4:44 
QuestionProblem in capturing the enter event of an edit control. Pin
chandu0041-Dec-07 0:50
chandu0041-Dec-07 0:50 
AnswerRe: Problem in capturing the enter event of an edit control. Pin
Jijo.Raj2-Dec-07 0:59
Jijo.Raj2-Dec-07 0:59 
QuestionNo CPen? Pin
Haakon S.1-Dec-07 0:29
Haakon S.1-Dec-07 0:29 
AnswerRe: No CPen? Pin
CPallini1-Dec-07 0:44
mveCPallini1-Dec-07 0:44 
GeneralRe: No CPen? Pin
Haakon S.1-Dec-07 0:56
Haakon S.1-Dec-07 0:56 
GeneralRe: No CPen? Pin
Haakon S.1-Dec-07 1:38
Haakon S.1-Dec-07 1:38 
QuestionThreads Pin
krishna Vuppala30-Nov-07 23:30
krishna Vuppala30-Nov-07 23:30 
AnswerRe: Threads Pin
CPallini1-Dec-07 0:00
mveCPallini1-Dec-07 0:00 
GeneralRe: Threads Pin
krishna Vuppala1-Dec-07 0:46
krishna Vuppala1-Dec-07 0:46 

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.