Home > other >  New socket programming docking database problems
New socket programming docking database problems

Time:10-26

# pragma comment (lib, "ws2_32. Lib")
# include & lt; Winsock. H>
# include & lt; Mysql. H>
Int main (void)
{
The LPWSADATA wsaData;
WSAStartup (MAKEWORD (2, 1), & amp; WsaData);
MYSQL * MYSQL=mysql_init (0);
Mysql_real_connect (mysql, "localhost", "root", "root", "webrobot, 0, 0, 0).
Mysql_close (mysql);
WSACleanup ();
return 0;
}
Why an error at the end of the Run - Time Check Failure # 2 - Stack around the variable 'wsaData' was corrupted.?
The couple inquire,
  • Related