L
lothar.behrens
Hi,
I have the following definition of a pure abstract class:
class lb_I_String {
// ...
virtual lb_I_String* LB_STDCALL operator += (const char* toAppend) =
0;
// ...
};
And use it like this:
lb_I_String* newWhereClause = getStringInstance(); // A fictive
'instance maker'
newWhereClause = " where ";
newWhereClause += "column1 = ";
Why I get these error messages ?
lbDatabaseForm.cpp: In member function `void
lbDatabaseDialog::updateFromMaster()':
lbDatabaseForm.cpp:1904: error: cannot convert `const char[8]' to
`lb_I_String*
' in assignment
lbDatabaseForm.cpp:1906: error: invalid operands of types
`lb_I_String*' and `
const char[11]' to binary `operator+'
lbDatabaseForm.cpp:1906: error: in evaluation of `operator+=(class
lb_I_String*, const char[11])'
Thanks
Lothar
I have the following definition of a pure abstract class:
class lb_I_String {
// ...
virtual lb_I_String* LB_STDCALL operator += (const char* toAppend) =
0;
// ...
};
And use it like this:
lb_I_String* newWhereClause = getStringInstance(); // A fictive
'instance maker'
newWhereClause = " where ";
newWhereClause += "column1 = ";
Why I get these error messages ?
lbDatabaseForm.cpp: In member function `void
lbDatabaseDialog::updateFromMaster()':
lbDatabaseForm.cpp:1904: error: cannot convert `const char[8]' to
`lb_I_String*
' in assignment
lbDatabaseForm.cpp:1906: error: invalid operands of types
`lb_I_String*' and `
const char[11]' to binary `operator+'
lbDatabaseForm.cpp:1906: error: in evaluation of `operator+=(class
lb_I_String*, const char[11])'
Thanks
Lothar