Thanks.. :) One more question..
stringstream does not have anything for MSGLEN.. Rite?? pData length is not defined... Rite???
Dunno.
You can have a look at <http://www.cplusplus.com/ref/iostream/stringstream/> for some reference on stringstream, though.
.fwyzard.