I successfully configured MYSQL with VS2008, i executed the following code, and no errors were thrown.
#include <mysql.h>
#include "stdafx.h"
void main()
{
}
Now i need to write a C++ code to retrieve some values from a Database, therefore i used the following code;
#include <mysql.h>
#include "stdafx.h"
#include <stdio.h>
#include <windows.h>
void main()
{
MYSQL *conn;
}
As soon as i type MYSQL *conn; and run the application i get the following error message;
error C2065: 'MYSQL' : undeclared identifier
There's just something missing here, and google couldn't give a good solution, Please help.