Hi there,
I'm a newbie at this, and I would really appreciate some help on this.
I have a class called Writer, and in different class I have a dynamic Writer array called xmlWriterArray.
//create a new XML writer for the new output file
Writer* w= new Writer ();
//add the new writer into xmlWriterArray
xmlWriterArray [xmlCount-1] = w;
I want to add a new writer object to the array. But the last line above is giving me:
c:\Documents and Settings\My Documents\code\ MessageHandler. cpp(127): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'Writer *' (or there is no acceptable conversion)
It seems like a fairly straight forward error...but I can't seem to figure out how to fix it.
Any help would be greatly appreciated.
Thanks
I'm a newbie at this, and I would really appreciate some help on this.
I have a class called Writer, and in different class I have a dynamic Writer array called xmlWriterArray.
//create a new XML writer for the new output file
Writer* w= new Writer ();
//add the new writer into xmlWriterArray
xmlWriterArray [xmlCount-1] = w;
I want to add a new writer object to the array. But the last line above is giving me:
c:\Documents and Settings\My Documents\code\ MessageHandler. cpp(127): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'Writer *' (or there is no acceptable conversion)
It seems like a fairly straight forward error...but I can't seem to figure out how to fix it.
Any help would be greatly appreciated.
Thanks
Comment