|
-
April 20th, 1999, 01:59 PM
#1
Deriving a class from CString
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|