ok, not working... here again in detail:
Class ClientThread.h
..
..
..
QString * dataIn;
..
To copy to clipboard, switch view to plain text mode
Class ClientThread.cpp
..
void ClientThread::readData(){
dataIn->clear();
dataIn->append(_tcpSocket->readAll());
textBrowser->append(dataIn->toAscii());
messageIn->parseMessage(*dataIn);
}
..
..
void ClientThread::readData(){
dataIn->clear();
dataIn->append(_tcpSocket->readAll());
textBrowser->append(dataIn->toAscii());
messageIn->parseMessage(*dataIn);
}
..
To copy to clipboard, switch view to plain text mode
Class MessageIn.h
..
void parseMessage(Qstring dataIn);
..
..
void parseMessage(Qstring dataIn);
..
To copy to clipboard, switch view to plain text mode
Class MessageIn.cpp
..
void MessageIn::parseMessage(Qstring dataIn){
}
..
..
void MessageIn::parseMessage(Qstring dataIn){
}
..
To copy to clipboard, switch view to plain text mode
This gives me the following error:
messagein.h:10: error: variable or field `parseMessage' declared void
messagein.h:10: error: expected `;' before '(' token
clientthread.cpp: In member function `void ClientThread::readData()':
clientthread.cpp:34: error: 'class MessageIn' has no member named 'parseMessage'
mingw32-make[1]: *** [release\clientthread.o] Error 1
mingw32-make[1]: Leaving directory `E:/infospeed/program/server'
mingw32-make: *** [release] Error 2
Any idea ?
Bookmarks