April 20th, 1999, 01:59 PM
I derived a new class from CString. Here is my code:
//ScriptXSourceString ~ SXSrcS
class SXSrcS : public CString
{
public:
// SXSrcS();
// ~SXSrcS();
getRVal(CString &, CString);
};
#endif
I then creat an object:
SXSrcS temp = "this is a test";
I get the following error:
OP1QuestionList.cpp(441) : error C2440: 'initializing' : cannot convert from 'char [15]' to 'class SXSrcS *'
My question is what is the deal..How come I am getting this error.
//ScriptXSourceString ~ SXSrcS
class SXSrcS : public CString
{
public:
// SXSrcS();
// ~SXSrcS();
getRVal(CString &, CString);
};
#endif
I then creat an object:
SXSrcS temp = "this is a test";
I get the following error:
OP1QuestionList.cpp(441) : error C2440: 'initializing' : cannot convert from 'char [15]' to 'class SXSrcS *'
My question is what is the deal..How come I am getting this error.