Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReceiveText / ReceiveBuf gives garbage

Status
Not open for further replies.

MoonchildHK

Programmer
Jun 5, 2001
22
HK
Hey All,

I am trying to make a connection to an SQL server using a TClientSocket with BCB5. Although I have no problem reading and writing data to other connections (FTP, SMTP, HTTP etc) I can't seem to get any sense out of a connection to a remote MySQL server.

When I use ReceiveBuf I just seem to get garbage, although it worked fine with the other types of connections. I have noticed the same happens with connections to remote telnet ports. How can I read data from these connections so it makes sense?

I guess there is something I am doing wrong? Any help would be much appreciated :)

Thanks,

Steph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top