MySQL In C++ Reference/Undeclared Identifiers

So currently i am trying to connect a database to an C++ application, i watched a tutorial but it was very outdated and on MSVS 2013 but i followed it none the less except for one part i couldn't he added a MySQL reference which i couldn't find
so does anyone know if i need to download it or what? and am i doing this wrong
Note: Details taken out for obvious reasons
1
2
3
4
5
6
7
8
9
10
11
12
		String^ constring = L"datasource=.com;port=3306;username=;password=";
		MySqlConnection^ conDatabase = gcnew MySqlConnection(constring);
		MySqlCommand^ cmdDatabase = gcnew MySqlCommand("select * from database.logins;", conDatabase);
		MySqlDataReader^ myReader;
		try {
			conDatabase->Open();
			myReader = cmdDatabase->ExecuteReader();
		}
		catch (Exception^ex) {
		
			MessageBox::Show(ex->Message);
		}

so the erros i get are all about the stuff above being undeclared identifiers since i didn't find a reference for MySQL
Yes you need to download a library for .net and MySql.
You can get it here. https://dev.mysql.com/downloads/connector/net/6.9.html
Topic archived. No new replies allowed.