string^ constring=L"datasource=localhost;port:80;username=root;password='';"; MySqlConnection^ conDatabase=gcnew MySqlConnection(constring); MySqlCommand^ cmd=gcnew MySqlCommand("select * from eventor.user",conDatabase); MySqlDataReader^ myreader; try { conDatabase->Open(); myreader=cmd->ExecuteReader(); } catch(Exception^ ex) { MessageBox::Show(ex->Message); }
string
String
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)