Hello to All
First, i'm not able to use .net assembly and i'm asking to the forum if someone can help me in this new adventure :-)
Here is a portion of code in c# that use two dll (MySql.data.dll and MySqlBackup.dll)
Please, can someone help me to "translate" this code to Windev??
Thanks in advance.
Gianni
First, i'm not able to use .net assembly and i'm asking to the forum if someone can help me in this new adventure :-)
Here is a portion of code in c# that use two dll (MySql.data.dll and MySqlBackup.dll)
//Backup/Export a MySQL Database
string constring = "server=localhost;user=root;pwd=qwerty;database=test;";
// Important Additional Connection Options
constring += "charset=utf8;convertzerodatetime=true;";
string file = "C:\\backup.sql";
using (MySqlConnection conn = new MySqlConnection(constring))
{
using (MySqlCommand cmd = new MySqlCommand())
{
using (MySqlBackup mb = new MySqlBackup(cmd))
{
cmd.Connection = conn;
conn.Open();
mb.ExportToFile(file);
conn.Close();
}
}
}
Please, can someone help me to "translate" this code to Windev??
Thanks in advance.
Gianni