I am required to make a simple chat program using a windows form application. I have both the Client and Server forms made and I can connect them no problem. The problem I am having is geting my textbox->Text to be passed through a message.
the send() functions second parameter is a const char* buffer. I can't get my Textbox->Text to fit in that parameter.
if you use StringToHGlobalAnsi don't forget to free the memory.
I have been using CString as it has a built-in conversions, not sure if that will work in your case