I'm having some trouble, I'm using Dev C++ and I want to make my exe file and my dll file into one. So if i use my exe on another computer it tells me it's missing "libmySQL.dll" So I don't have to have two files.
My current code is:
#include <iostream>
#include <conio.h>
#include <string>
#include <fstream>
#include <windows.h>
#include <mysql.h>
//Beginging database connection
using namespace std;
int main()
{
MYSQL* conn;
conn = mysql_init(NULL);
//Database information: Host, username, password, database...
if (mysql_real_connect(conn,"213.171.200.49","4221joshua","4221dave","private",0,NULL,0) !=0)
{
cout << "Succesfully Connected to database: PRIVATE..." << endl;
}
else
{
cout << "Connection to the database failed!" << endl;
}
mysql_close(conn);
system("PAUSE");
return 0;
}