I'm using a csStringArray and want to compare the strings it contains:
csStringArray datenArray;
datenArray.Push(csString("netcmd"));
if(datenArray[0]=="netcmd") {...}
But: The comparision inside the if-statement returns false!
I checked datenArray[0] with csPrintf and it's right.
The comparision only works after I initialized another csString with datenArray[0]:
csStringArray datenArray;
datenArray.Push(csString("netcmd"));
csString xxx = datenArray[0];
if(xxx=="netcmd") {...}
this works! Why?
I know that csStringArray::operator[] returns a csString& and csString has operator==(const char *Str) const so this must be a bug - or what?