winsock, sending c++ style strings
hello!, you may remember i posted a while back about a winsock chat program..
anyway, i have encountered another problem. i can send C style strings (char str) but when trying to send a c++ style string (string str) i get errors, why?
error C2664: 'send' : cannot convert parameter 2 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<c
har> >' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.
now i don't know what this is saying...
i know i could just convert the string every time i needed to send it, but that would be messy...