摘要:
需在引用中添加MySqlBackup.dll,然后引入命名空间; using MySql.Data.MySqlClient; 备份数据库: using (MySqlConnection con = new MySqlConnection(conStr))//建立数据库连接 { using (MySq 阅读全文
摘要:
首先添加引用: using System.Runtime.InteropServices; 声明外部实现方法: [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, s 阅读全文