Okey.
Conn = mysql_init(NULL);
//Database db;
Startup startUp;
if (!mysql_real_connect(Conn, (char*)s_Database->Host.c_str(), (char*)s_Database->User.c_str(), (char*)s_Database->Pass.c_str(), (char*)s_Database->Name.c_str(), 3306, NULL, 0))
{
std::cout << mysql_error(Conn) << std::endl;
getchar();
exit(1);
}
Change debug to releaseQuote:
I have problem when I debug.
Here is the screen: [Only registered and activated users can see links. Click Here To Register...]
Check if the database has any empty value, that may cause an error.Quote:
I get this problem when I try to enter one of the two channels.
[Only registered and activated users can see links. Click Here To Register...]
Sorry, I wrote: "Szymek, I see that you're from Poland. Tell me, where I have to change it? In #pragma comment I've got libmysql.lib, but compilator still request mysql.lib. What should I do? And, am I paste your code correctly?Quote:
Please in English. This is an German/English board.