
Originally Posted by
talk2amulya
wont this work for u?
This is an overloaded member function, provided for convenience.
Writes the '\0'-terminated string s to the stream and returns a reference to the stream.
QDataStream & QDataStream::operator<< ( const char * s )
This is an overloaded member function, provided for convenience.
Writes the '\0'-terminated string s to the stream and returns a reference to the stream.
To copy to clipboard, switch view to plain text mode
I tried this. After some more searching I realized my problem.
This is what I did:
string myString;
myString.c_str;
string myString;
myString.c_str;
To copy to clipboard, switch view to plain text mode
Instead of:
string myString;
myString.c_str();
string myString;
myString.c_str();
To copy to clipboard, switch view to plain text mode
So now it works. But thanks for the tip. It made me search a little harder.
Bookmarks