Hi Ajay, >stringstream does not have anything for MSGLEN.. Rite?? pData length is not defined... Rite??? Correct on both counts. The std::stringstream / std::ostringstream / std::istringstream objects use a std::string as the backing store, not a char* buffer like strstream. --Eljay